github.com/keybase/client/go@v0.0.0-20240309051027-028f7c731f8b/protocol/keybase1/kex2provisioner.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/kex2provisioner.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 KexStartArg struct { 13 } 14 15 type Kex2ProvisionerInterface interface { 16 KexStart(context.Context) error 17 } 18 19 func Kex2ProvisionerProtocol(i Kex2ProvisionerInterface) rpc.Protocol { 20 return rpc.Protocol{ 21 Name: "keybase.1.Kex2Provisioner", 22 Methods: map[string]rpc.ServeHandlerDescription{ 23 "kexStart": { 24 MakeArg: func() interface{} { 25 var ret [1]KexStartArg 26 return &ret 27 }, 28 Handler: func(ctx context.Context, args interface{}) (ret interface{}, err error) { 29 err = i.KexStart(ctx) 30 return 31 }, 32 }, 33 }, 34 } 35 } 36 37 type Kex2ProvisionerClient struct { 38 Cli rpc.GenericClient 39 } 40 41 func (c Kex2ProvisionerClient) KexStart(ctx context.Context) (err error) { 42 err = c.Cli.Notify(ctx, "keybase.1.Kex2Provisioner.kexStart", []interface{}{KexStartArg{}}, 0*time.Millisecond) 43 return 44 }