service

package
v0.0.0-...-0f10715 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcClient

type GrpcClient struct {
	Address string
	Conn    *grpc.ClientConn
	Client  api.WalletClient
}

func NewGrpcClient

func NewGrpcClient(address string) *GrpcClient

func (*GrpcClient) GetAccount

func (g *GrpcClient) GetAccount(address string) (*core.Account, error)

func (*GrpcClient) GetBlockByNum

func (g *GrpcClient) GetBlockByNum(num int64) (*api.BlockExtention, error)

func (*GrpcClient) GetNowBlock

func (g *GrpcClient) GetNowBlock() (*api.BlockExtention, error)

func (*GrpcClient) Start

func (g *GrpcClient) Start()

Jump to

Keyboard shortcuts

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