node

package
v0.0.0-...-422065e Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HashResult

type HashResult struct {
	NodeName   string
	NodeResult bool
}

type NodeApi

type NodeApi struct {
	// contains filtered or unexported fields
}

对外api

func InitConn

func InitConn(cfg *config.Config, db localdb.Database) (*NodeApi, error)

init

func (*NodeApi) CheckKeyRequest

func (n *NodeApi) CheckKeyRequest(grpcStream *config.GrpcStream) bool

hash 确认上报

func (*NodeApi) CloseConn

func (n *NodeApi) CloseConn() error

close conn

func (*NodeApi) CoinListRequest

func (n *NodeApi) CoinListRequest(grpcStream *config.GrpcStream) bool

list上报

func (*NodeApi) DepositRequest

func (n *NodeApi) DepositRequest(grpcStream *config.GrpcStream) bool

充值上报

func (*NodeApi) HashEnableRequest

func (n *NodeApi) HashEnableRequest(grpcStream *config.GrpcStream) bool

hash 确认上报

func (*NodeApi) HashListRequest

func (n *NodeApi) HashListRequest(grpcStream *config.GrpcStream) bool

hash上报

func (*NodeApi) RepReSend

func (n *NodeApi) RepReSend()

grpc失败重发

func (*NodeApi) RepStart

func (n *NodeApi) RepStart()

report

func (*NodeApi) TokenListRequest

func (n *NodeApi) TokenListRequest(grpcStream *config.GrpcStream) bool

token上报

func (*NodeApi) WithDrewRequest

func (n *NodeApi) WithDrewRequest(grpcStream *config.GrpcStream) bool

提现上报

func (*NodeApi) WithDrewTxRequest

func (n *NodeApi) WithDrewTxRequest(grpcStream *config.GrpcStream) bool

提现tx上报

Jump to

Keyboard shortcuts

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