porting all github actions from bluesky-social/indigo to tangled CI
at main 880 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.temp.fetchLabels 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// TempFetchLabels_Output is the output of a com.atproto.temp.fetchLabels call. 14type TempFetchLabels_Output struct { 15 Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"` 16} 17 18// TempFetchLabels calls the XRPC method "com.atproto.temp.fetchLabels". 19func TempFetchLabels(ctx context.Context, c util.LexClient, limit int64, since int64) (*TempFetchLabels_Output, error) { 20 var out TempFetchLabels_Output 21 22 params := map[string]interface{}{} 23 if limit != 0 { 24 params["limit"] = limit 25 } 26 if since != 0 { 27 params["since"] = since 28 } 29 if err := c.LexDo(ctx, util.Query, "", "com.atproto.temp.fetchLabels", params, nil, &out); err != nil { 30 return nil, err 31 } 32 33 return &out, nil 34}