Monorepo for Tangled tangled.org
1

Configure Feed

Select the types of activity you want to include in your feed.

core / api / tangled / issuecountStates.go
1.2 kB 38 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.repo.issue.countStates 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 RepoIssueCountStatesNSID = "sh.tangled.repo.issue.countStates" 15) 16 17// RepoIssueCountStates_Output is the output of a sh.tangled.repo.issue.countStates call. 18type RepoIssueCountStates_Output struct { 19 // count: Total number of matching records. 20 Count int64 `json:"count" cborgen:"count"` 21 // distinctAuthors: Number of distinct authors among the matching records. 22 DistinctAuthors int64 `json:"distinctAuthors" cborgen:"distinctAuthors"` 23} 24 25// RepoIssueCountStates calls the XRPC method "sh.tangled.repo.issue.countStates". 26// 27// subject: Issue AT-URI whose state records to list. 28func RepoIssueCountStates(ctx context.Context, c util.LexClient, subject string) (*RepoIssueCountStates_Output, error) { 29 var out RepoIssueCountStates_Output 30 31 params := map[string]interface{}{} 32 params["subject"] = subject 33 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.repo.issue.countStates", params, nil, &out); err != nil { 34 return nil, err 35 } 36 37 return &out, nil 38}