github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/protocol/keybase1/scanproofs.go (about) 1 // Auto-generated to Go types and interfaces using avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler) 2 // Input file: avdl/keybase1/scanproofs.avdl 3 4 package keybase1 5 6 import ( 7 "github.com/keybase/go-framed-msgpack-rpc/rpc" 8 context "golang.org/x/net/context" 9 "time" 10 ) 11 12 type ScanProofsArg struct { 13 SessionID int `codec:"sessionID" json:"sessionID"` 14 Infile string `codec:"infile" json:"infile"` 15 Indices string `codec:"indices" json:"indices"` 16 Sigid string `codec:"sigid" json:"sigid"` 17 Ratelimit int `codec:"ratelimit" json:"ratelimit"` 18 Cachefile string `codec:"cachefile" json:"cachefile"` 19 Ignorefile string `codec:"ignorefile" json:"ignorefile"` 20 } 21 22 type ScanProofsInterface interface { 23 ScanProofs(context.Context, ScanProofsArg) error 24 } 25 26 func ScanProofsProtocol(i ScanProofsInterface) rpc.Protocol { 27 return rpc.Protocol{ 28 Name: "keybase.1.ScanProofs", 29 Methods: map[string]rpc.ServeHandlerDescription{ 30 "scanProofs": { 31 MakeArg: func() interface{} { 32 var ret [1]ScanProofsArg 33 return &ret 34 }, 35 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 36 typedArgs, ok := args.(*[1]ScanProofsArg) 37 if !ok { 38 err = rpc.NewTypeError((*[1]ScanProofsArg)(nil), args) 39 return 40 } 41 err = i.ScanProofs(ctx, typedArgs[0]) 42 return 43 }, 44 }, 45 }, 46 } 47 } 48 49 type ScanProofsClient struct { 50 Cli rpc.GenericClient 51 } 52 53 func (c ScanProofsClient) ScanProofs(ctx context.Context, __arg ScanProofsArg) (err error) { 54 err = c.Cli.Call(ctx, "keybase.1.ScanProofs.scanProofs", []interface{}{__arg}, nil, 0*time.Millisecond) 55 return 56 }