/
githubmirror
/
client
Обзор
Документация
Войти
/
githubmirror
/
client
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
go/service/wallet.go
45 строк
1 KB
zoom-ua
enable linters: ineffassign, unused, staticcheck (#28735)
23 дек 2025, 02:24
Не верифицирован
23 дек 2025, 02:24
e0e297e
Код
Авторство
О чём код?
// Copyright 2018 Keybase, Inc. All rights reserved. Use of // this source code is governed by the included BSD license. // RPC handlers for wallet operations package service import ( "github.com/keybase/client/go/libkb" "github.com/keybase/client/go/protocol/stellar1" "github.com/keybase/client/go/stellar" "github.com/keybase/client/go/stellar/stellarsvc" "github.com/keybase/go-framed-msgpack-rpc/rpc" ) type walletHandler struct { libkb.Contextified *BaseHandler *stellarsvc.Server } var _ stellar1.LocalInterface = (*walletHandler)(nil) func newWalletHandler(xp rpc.Transporter, g *libkb.GlobalContext, walletState *stellar.WalletState) *walletHandler { h := &walletHandler{ Contextified: libkb.NewContextified(g), BaseHandler: NewBaseHandler(g, xp), } h.Server = stellarsvc.New(g, h, walletState) return h } func (h *walletHandler) SecretUI(g *libkb.GlobalContext, sessionID int) libkb.SecretUI { return h.getSecretUI(sessionID, g) } func (h *walletHandler) IdentifyUI(g *libkb.GlobalContext, sessionID int) libkb.IdentifyUI { return h.NewRemoteIdentifyUI(sessionID, g) } func (h *walletHandler) StellarUI() stellar1.UiInterface { return stellar1.UiClient{Cli: h.rpcClient()} }