A fork of https://github.com/teal-fm/piper
at main 34 lines 949 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package ozone 4 5// schema: tools.ozone.set.getValues 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// SetGetValues_Output is the output of a tools.ozone.set.getValues call. 14type SetGetValues_Output struct { 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 Set *SetDefs_SetView `json:"set" cborgen:"set"` 17 Values []string `json:"values" cborgen:"values"` 18} 19 20// SetGetValues calls the XRPC method "tools.ozone.set.getValues". 21func SetGetValues(ctx context.Context, c *xrpc.Client, cursor string, limit int64, name string) (*SetGetValues_Output, error) { 22 var out SetGetValues_Output 23 24 params := map[string]interface{}{ 25 "cursor": cursor, 26 "limit": limit, 27 "name": name, 28 } 29 if err := c.Do(ctx, xrpc.Query, "", "tools.ozone.set.getValues", params, nil, &out); err != nil { 30 return nil, err 31 } 32 33 return &out, nil 34}