/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/protocol/keybase1/log_ui.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/log_ui.avdl package keybase1 import ( "context" "time" "github.com/keybase/go-framed-msgpack-rpc/rpc" ) type LogArg struct { SessionID int `codec:"sessionID" json:"sessionID"` Level LogLevel `codec:"level" json:"level"` Text Text `codec:"text" json:"text"` } type LogUiInterface interface { Log(context.Context, LogArg) error } func LogUiProtocol(i LogUiInterface) rpc.Protocol { return rpc.Protocol{ Name: "keybase.1.logUi", Methods: map[string]rpc.ServeHandlerDescription{ "log": { MakeArg: func() any { var ret [1]LogArg return &ret }, Handler: func(ctx context.Context, args any) (ret any, err error) { typedArgs, ok := args.(*[1]LogArg) if !ok { err = rpc.NewTypeError((*[1]LogArg)(nil), args) return } err = i.Log(ctx, typedArgs[0]) return }, }, }, } } type LogUiClient struct { Cli rpc.GenericClient } func (c LogUiClient) Log(ctx context.Context, __arg LogArg) (err error) { err = c.Cli.Call(ctx, "keybase.1.logUi.log", []any{__arg}, nil, 0*time.Millisecond) return }