/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/protocol/keybase1/notify_device_clone.go
52 строки
1 KB
chrisnojima-zoom
Version 670 - clean2 (#29122)
08 июн 2026, 19:31
Не верифицирован
08 июн 2026, 19:31
1943197
Код
Авторство
О чём код?
// Code generated to Go types and interfaces using avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler). DO NOT EDIT. // Input file: avdl/keybase1/notify_device_clone.avdl package keybase1 import ( "context" "time" "github.com/keybase/go-framed-msgpack-rpc/rpc" ) type DeviceCloneCountChangedArg struct { NewClones int `codec:"newClones" json:"newClones"` } type NotifyDeviceCloneInterface interface { DeviceCloneCountChanged(context.Context, int) error } func NotifyDeviceCloneProtocol(i NotifyDeviceCloneInterface) rpc.Protocol { return rpc.Protocol{ Name: "keybase.1.NotifyDeviceClone", Methods: map[string]rpc.ServeHandlerDescription{ "deviceCloneCountChanged": { MakeArg: func() any { var ret [1]DeviceCloneCountChangedArg return &ret }, Handler: func(ctx context.Context, args any) (ret any, err error) { typedArgs, ok := args.(*[1]DeviceCloneCountChangedArg) if !ok { err = rpc.NewTypeError((*[1]DeviceCloneCountChangedArg)(nil), args) return } err = i.DeviceCloneCountChanged(ctx, typedArgs[0].NewClones) return }, }, }, } } type NotifyDeviceCloneClient struct { Cli rpc.GenericClient } func (c NotifyDeviceCloneClient) DeviceCloneCountChanged(ctx context.Context, newClones int) (err error) { __arg := DeviceCloneCountChangedArg{NewClones: newClones} err = c.Cli.Notify(ctx, "keybase.1.NotifyDeviceClone.deviceCloneCountChanged", []any{__arg}, 0*time.Millisecond) return }