-
Notifications
You must be signed in to change notification settings - Fork 89
/
synclistBlobs.go
37 lines (29 loc) · 1013 Bytes
/
synclistBlobs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package atproto
// schema: com.atproto.sync.listBlobs
import (
"context"
"github.com/bluesky-social/indigo/xrpc"
)
// SyncListBlobs_Output is the output of a com.atproto.sync.listBlobs call.
type SyncListBlobs_Output struct {
Cids []string `json:"cids" cborgen:"cids"`
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
}
// SyncListBlobs calls the XRPC method "com.atproto.sync.listBlobs".
//
// did: The DID of the repo.
// since: Optional revision of the repo to list blobs since.
func SyncListBlobs(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64, since string) (*SyncListBlobs_Output, error) {
var out SyncListBlobs_Output
params := map[string]interface{}{
"cursor": cursor,
"did": did,
"limit": limit,
"since": since,
}
if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.listBlobs", params, nil, &out); err != nil {
return nil, err
}
return &out, nil
}