/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/service/selfprovision.go
35 строк
1004 B
zoom-ua
remove golang.org/x/net/context in favor of context (#28708)
17 дек 2025, 18:24
Не верифицирован
17 дек 2025, 18:24
67b0ffe
Код
Авторство
О чём код?
package service import ( "context" "github.com/keybase/client/go/engine" "github.com/keybase/client/go/libkb" keybase1 "github.com/keybase/client/go/protocol/keybase1" "github.com/keybase/go-framed-msgpack-rpc/rpc" ) type SelfProvisionHandler struct { *BaseHandler libkb.Contextified } func NewSelfProvisionHandler(xp rpc.Transporter, g *libkb.GlobalContext) *SelfProvisionHandler { return &SelfProvisionHandler{ BaseHandler: NewBaseHandler(g, xp), Contextified: libkb.NewContextified(g), } } func (h *SelfProvisionHandler) SelfProvision(ctx context.Context, arg keybase1.SelfProvisionArg) error { uis := libkb.UIs{ LogUI: h.getLogUI(arg.SessionID), SecretUI: h.getSecretUI(arg.SessionID, h.G()), LoginUI: h.getLoginUI(arg.SessionID), ProvisionUI: h.getProvisionUI(arg.SessionID), SessionID: arg.SessionID, } eng := engine.NewSelfProvisionEngine(h.G(), arg.DeviceName) m := libkb.NewMetaContext(ctx, h.G()).WithUIs(uis) return engine.RunEngine2(m, eng) }