1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package tangled
4
5// schema: sh.tangled.owner
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13const (
14 OwnerNSID = "sh.tangled.owner"
15)
16
17// Owner_Output is the output of a sh.tangled.owner call.
18type Owner_Output struct {
19 Owner string `json:"owner" cborgen:"owner"`
20}
21
22// Owner calls the XRPC method "sh.tangled.owner".
23func Owner(ctx context.Context, c util.LexClient) (*Owner_Output, error) {
24 var out Owner_Output
25 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.owner", nil, nil, &out); err != nil {
26 return nil, err
27 }
28
29 return &out, nil
30}