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/lex/util"
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 util.LexClient, cursor string, limit int64, name string) (*SetGetValues_Output, error) {
22 var out SetGetValues_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["name"] = name
32 if err := c.LexDo(ctx, util.Query, "", "tools.ozone.set.getValues", params, nil, &out); err != nil {
33 return nil, err
34 }
35
36 return &out, nil
37}