Something went wrong. Try again.
test
Something went wrong. Try again.
1.1 kB · 32 lines
Go
at main
123456789101112131415161718192021222324252627282930313233// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
// Lexicon schema: com.atproto.server.createInviteCode
package atproto
import ( "context"
lexutil "github.com/bluesky-social/indigo/lex/util")
// ServerCreateInviteCode_Input is the input argument to a com.atproto.server.createInviteCode call.type ServerCreateInviteCode_Input struct { ForAccount *string `json:"forAccount,omitempty" cborgen:"forAccount,omitempty"` UseCount int64 `json:"useCount" cborgen:"useCount"`}
// ServerCreateInviteCode_Output is the output of a com.atproto.server.createInviteCode call.type ServerCreateInviteCode_Output struct { Code string `json:"code" cborgen:"code"`}
// ServerCreateInviteCode calls the XRPC method "com.atproto.server.createInviteCode".func ServerCreateInviteCode(ctx context.Context, c lexutil.LexClient, input *ServerCreateInviteCode_Input) (*ServerCreateInviteCode_Output, error) { var out ServerCreateInviteCode_Output if err := c.LexDo(ctx, lexutil.Procedure, "application/json", "com.atproto.server.createInviteCode", nil, input, &out); err != nil { return nil, err }
return &out, nil}