global

package
v3.0.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildTime string

BuildTime build time

View Source
var CodeVersion string

CodeVersion is the version string of code

View Source
var GitHash string

GitHash git hash

Functions

func GetGlobalConf

func GetGlobalConf() *common.Config

GetGlobalConf ...

func SetGlobalConf

func SetGlobalConf(conf *common.Config)

SetGlobalConf ...

Types

type BaseVariable

type BaseVariable interface {
	StateDB() db.MVCCDB
	Config() *common.Config
	BlockChain() block.Chain
}

BaseVariable defines BaseVariable's API.

type BaseVariableImpl

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

BaseVariableImpl is the implementation of BaseVariable

func New

func New(conf *common.Config) (*BaseVariableImpl, error)

New return a BaseVariable instance

func (*BaseVariableImpl) BlockChain

func (g *BaseVariableImpl) BlockChain() block.Chain

BlockChain return the block chain

func (*BaseVariableImpl) Config

func (g *BaseVariableImpl) Config() *common.Config

Config return the config

func (*BaseVariableImpl) StateDB

func (g *BaseVariableImpl) StateDB() db.MVCCDB

StateDB return the state database

Jump to

Keyboard shortcuts

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