A fork of https://github.com/teal-fm/piper
at main 28 lines 625 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.sync.getCheckout 6 7import ( 8 "bytes" 9 "context" 10 11 "github.com/bluesky-social/indigo/xrpc" 12) 13 14// SyncGetCheckout calls the XRPC method "com.atproto.sync.getCheckout". 15// 16// did: The DID of the repo. 17func SyncGetCheckout(ctx context.Context, c *xrpc.Client, did string) ([]byte, error) { 18 buf := new(bytes.Buffer) 19 20 params := map[string]interface{}{ 21 "did": did, 22 } 23 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getCheckout", params, nil, buf); err != nil { 24 return nil, err 25 } 26 27 return buf.Bytes(), nil 28}