rpc

package
v0.0.0-...-f54a15d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 (*RpcServer) GetSupportSignWay

func (*RpcServer) SignTxMessage

func (*RpcServer) Start

func (s *RpcServer) Start(ctx context.Context) error

func (*RpcServer) Stop

func (s *RpcServer) Stop(ctx context.Context) error

func (*RpcServer) Stopped

func (s *RpcServer) Stopped() bool

type RpcServerConfig

type RpcServerConfig struct {
	GrpcHostname string
	GrpcPort     int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL