/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/protocol/keybase1/notify_featuredbots.go
53 строки
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_featuredbots.avdl package keybase1 import ( "context" "time" "github.com/keybase/go-framed-msgpack-rpc/rpc" ) type FeaturedBotsUpdateArg struct { Bots []FeaturedBot `codec:"bots" json:"bots"` Limit int `codec:"limit" json:"limit"` Offset int `codec:"offset" json:"offset"` } type NotifyFeaturedBotsInterface interface { FeaturedBotsUpdate(context.Context, FeaturedBotsUpdateArg) error } func NotifyFeaturedBotsProtocol(i NotifyFeaturedBotsInterface) rpc.Protocol { return rpc.Protocol{ Name: "keybase.1.NotifyFeaturedBots", Methods: map[string]rpc.ServeHandlerDescription{ "featuredBotsUpdate": { MakeArg: func() any { var ret [1]FeaturedBotsUpdateArg return &ret }, Handler: func(ctx context.Context, args any) (ret any, err error) { typedArgs, ok := args.(*[1]FeaturedBotsUpdateArg) if !ok { err = rpc.NewTypeError((*[1]FeaturedBotsUpdateArg)(nil), args) return } err = i.FeaturedBotsUpdate(ctx, typedArgs[0]) return }, }, }, } } type NotifyFeaturedBotsClient struct { Cli rpc.GenericClient } func (c NotifyFeaturedBotsClient) FeaturedBotsUpdate(ctx context.Context, __arg FeaturedBotsUpdateArg) (err error) { err = c.Cli.Notify(ctx, "keybase.1.NotifyFeaturedBots.featuredBotsUpdate", []any{__arg}, 0*time.Millisecond) return }