Documentation ¶
Index ¶
- Constants
- type RpcServer
- func (s *RpcServer) ExportPublicKeyList(ctx context.Context, in *wallet.ExportPublicKeyRequest) (*wallet.ExportPublicKeyResponse, error)
- func (s *RpcServer) GetSupportSignWay(ctx context.Context, in *wallet.SupportSignWayRequest) (*wallet.SupportSignWayResponse, error)
- func (s *RpcServer) SignTxMessage(ctx context.Context, in *wallet.SignTxMessageRequest) (*wallet.SignTxMessageResponse, error)
- func (s *RpcServer) Start(ctx context.Context) error
- func (s *RpcServer) Stop(ctx context.Context) error
- func (s *RpcServer) Stopped() bool
- type RpcServerConfig
Constants ¶
View Source
const MaxRecvMessageSize = 1024 * 1024 * 30000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RpcServer ¶
type RpcServer struct { *RpcServerConfig wallet.UnimplementedWalletServiceServer // contains filtered or unexported fields }
func NewRpcServer ¶
func NewRpcServer(db *leveldb.Keys, config *RpcServerConfig) (*RpcServer, error)
func (*RpcServer) ExportPublicKeyList ¶
func (s *RpcServer) ExportPublicKeyList(ctx context.Context, in *wallet.ExportPublicKeyRequest) (*wallet.ExportPublicKeyResponse, error)
func (*RpcServer) GetSupportSignWay ¶
func (s *RpcServer) GetSupportSignWay(ctx context.Context, in *wallet.SupportSignWayRequest) (*wallet.SupportSignWayResponse, error)
func (*RpcServer) SignTxMessage ¶
func (s *RpcServer) SignTxMessage(ctx context.Context, in *wallet.SignTxMessageRequest) (*wallet.SignTxMessageResponse, error)
type RpcServerConfig ¶
Click to show internal directories.
Click to hide internal directories.