Monorepo for Tangled tangled.org
5

Configure Feed

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

1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.knot.listMembersBy 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 KnotListMembersByNSID = "sh.tangled.knot.listMembersBy" 15) 16 17// KnotListMembersBy_Output is the output of a sh.tangled.knot.listMembersBy call. 18type KnotListMembersBy_Output struct { 19 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 20 Items []*KnotListMembers_ListItem `json:"items" cborgen:"items"` 21} 22 23// KnotListMembersBy calls the XRPC method "sh.tangled.knot.listMembersBy". 24// 25// cursor: Pagination cursor 26// order: Sort direction by createdAt. 27// subject: Actor DID whose knot-member authorings to list. 28func KnotListMembersBy(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*KnotListMembersBy_Output, error) { 29 var out KnotListMembersBy_Output 30 31 params := map[string]interface{}{} 32 if cursor != "" { 33 params["cursor"] = cursor 34 } 35 if limit != 0 { 36 params["limit"] = limit 37 } 38 if order != "" { 39 params["order"] = order 40 } 41 params["subject"] = subject 42 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.knot.listMembersBy", params, nil, &out); err != nil { 43 return nil, err 44 } 45 46 return &out, nil 47}