services

package
v0.0.0-...-8896b81 Latest Latest
Warning

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

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

Documentation

Index

Constants

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 *database.DB, config *RpcServerConfig) (*RpcServer, error)

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

func (*RpcServer) SubmitWithdrawInfo

func (s *RpcServer) SubmitWithdrawInfo(ctx context.Context, in *wallet.WithdrawReq) (*wallet.WithdrawRep, error)

func (*RpcServer) VerifyAddress

func (*RpcServer) VerifyRiskDOrWNotify

func (*RpcServer) VerifyWithdrawSign

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