porting all github actions from bluesky-social/indigo to tangled CI
at main 746 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.getRepo 6 7import ( 8 "bytes" 9 "context" 10 11 "github.com/bluesky-social/indigo/lex/util" 12) 13 14// SyncGetRepo calls the XRPC method "com.atproto.sync.getRepo". 15// 16// did: The DID of the repo. 17// since: The revision ('rev') of the repo to create a diff from. 18func SyncGetRepo(ctx context.Context, c util.LexClient, did string, since string) ([]byte, error) { 19 buf := new(bytes.Buffer) 20 21 params := map[string]interface{}{} 22 params["did"] = did 23 if since != "" { 24 params["since"] = since 25 } 26 if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getRepo", params, nil, buf); err != nil { 27 return nil, err 28 } 29 30 return buf.Bytes(), nil 31}