A fork of https://github.com/teal-fm/piper
at main 26 lines 812 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.notifyOfUpdate 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// SyncNotifyOfUpdate_Input is the input argument to a com.atproto.sync.notifyOfUpdate call. 14type SyncNotifyOfUpdate_Input struct { 15 // hostname: Hostname of the current service (usually a PDS) that is notifying of update. 16 Hostname string `json:"hostname" cborgen:"hostname"` 17} 18 19// SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate". 20func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, input *SyncNotifyOfUpdate_Input) error { 21 if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.sync.notifyOfUpdate", nil, input, nil); err != nil { 22 return err 23 } 24 25 return nil 26}