A fork of https://github.com/teal-fm/piper
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package atproto
4
5// schema: com.atproto.temp.fetchLabels
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// TempFetchLabels_Output is the output of a com.atproto.temp.fetchLabels call.
14type TempFetchLabels_Output struct {
15 Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
16}
17
18// TempFetchLabels calls the XRPC method "com.atproto.temp.fetchLabels".
19func TempFetchLabels(ctx context.Context, c *xrpc.Client, limit int64, since int64) (*TempFetchLabels_Output, error) {
20 var out TempFetchLabels_Output
21
22 params := map[string]interface{}{
23 "limit": limit,
24 "since": since,
25 }
26 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.temp.fetchLabels", params, nil, &out); err != nil {
27 return nil, err
28 }
29
30 return &out, nil
31}