Something went wrong. Try again.
test
Something went wrong. Try again.
1.4 kB · 38 lines
Go
at main
123456789101112131415161718192021222324252627282930313233343536373839// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
// Lexicon schema: tools.ozone.queue.updateQueue
package ozone
import ( "context"
lexutil "github.com/bluesky-social/indigo/lex/util")
// QueueUpdateQueue_Input is the input argument to a tools.ozone.queue.updateQueue call.type QueueUpdateQueue_Input struct { // description: Optional description of the queue Description *string `json:"description,omitempty" cborgen:"description,omitempty"` // enabled: Enable or disable the queue Enabled *bool `json:"enabled,omitempty" cborgen:"enabled,omitempty"` // name: New display name for the queue Name *string `json:"name,omitempty" cborgen:"name,omitempty"` // queueId: ID of the queue to update QueueId int64 `json:"queueId" cborgen:"queueId"`}
// QueueUpdateQueue_Output is the output of a tools.ozone.queue.updateQueue call.type QueueUpdateQueue_Output struct { Queue *QueueDefs_QueueView `json:"queue" cborgen:"queue"`}
// QueueUpdateQueue calls the XRPC method "tools.ozone.queue.updateQueue".func QueueUpdateQueue(ctx context.Context, c lexutil.LexClient, input *QueueUpdateQueue_Input) (*QueueUpdateQueue_Output, error) { var out QueueUpdateQueue_Output if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "tools.ozone.queue.updateQueue", nil, input, &out); err != nil { return nil, err }
return &out, nil}