fork of indigo with slightly nicer lexgen
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.signature.searchAccounts 6 7import ( 8 "context" 9 10 comatprototypes "github.com/bluesky-social/indigo/api/atproto" 11 "github.com/bluesky-social/indigo/lex/util" 12) 13 14// SignatureSearchAccounts_Output is the output of a tools.ozone.signature.searchAccounts call. 15type SignatureSearchAccounts_Output struct { 16 Accounts []*comatprototypes.AdminDefs_AccountView `json:"accounts" cborgen:"accounts"` 17 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 18} 19 20// SignatureSearchAccounts calls the XRPC method "tools.ozone.signature.searchAccounts". 21func SignatureSearchAccounts(ctx context.Context, c util.LexClient, cursor string, limit int64, values []string) (*SignatureSearchAccounts_Output, error) { 22 var out SignatureSearchAccounts_Output 23 24 params := map[string]interface{}{} 25 if cursor != "" { 26 params["cursor"] = cursor 27 } 28 if limit != 0 { 29 params["limit"] = limit 30 } 31 params["values"] = values 32 if err := c.LexDo(ctx, util.Query, "", "tools.ozone.signature.searchAccounts", params, nil, &out); err != nil { 33 return nil, err 34 } 35 36 return &out, nil 37}