Documentation
¶
Index ¶
- Constants
- type RpcServer
- func (s *RpcServer) ExportPublicList(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 (rs *RpcServer) Start(ctx context.Context) error
- func (r *RpcServer) Stop(ctx context.Context) error
- func (r *RpcServer) Stopped() bool
- type RpcServerConfig
Constants ¶
View Source
const MaxGenerateAddressNumber = 1000 * 10
View Source
const MaxRecvMessageSize = 1024 * 1024 * 300
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) ExportPublicList ¶
func (s *RpcServer) ExportPublicList(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.