porting all github actions from bluesky-social/indigo to tangled CI
at main 1.2 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package ozone 4 5// schema: tools.ozone.set.querySets 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// SetQuerySets_Output is the output of a tools.ozone.set.querySets call. 14type SetQuerySets_Output struct { 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 Sets []*SetDefs_SetView `json:"sets" cborgen:"sets"` 17} 18 19// SetQuerySets calls the XRPC method "tools.ozone.set.querySets". 20// 21// sortDirection: Defaults to ascending order of name field. 22func SetQuerySets(ctx context.Context, c util.LexClient, cursor string, limit int64, namePrefix string, sortBy string, sortDirection string) (*SetQuerySets_Output, error) { 23 var out SetQuerySets_Output 24 25 params := map[string]interface{}{} 26 if cursor != "" { 27 params["cursor"] = cursor 28 } 29 if limit != 0 { 30 params["limit"] = limit 31 } 32 if namePrefix != "" { 33 params["namePrefix"] = namePrefix 34 } 35 if sortBy != "" { 36 params["sortBy"] = sortBy 37 } 38 if sortDirection != "" { 39 params["sortDirection"] = sortDirection 40 } 41 if err := c.LexDo(ctx, util.Query, "", "tools.ozone.set.querySets", params, nil, &out); err != nil { 42 return nil, err 43 } 44 45 return &out, nil 46}