contractcfg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: GPL-3.0, GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugTest bool = false
View Source
var DefaultConfig = Config{

	ContractFileSystemPath: "./chaincodes",
	ContractAddress:        "127.0.0.1:12345",
	ContractExecutetimeout: time.Duration(20) * time.Second,
	ContractDeploytimeout:  time.Duration(180) * time.Second,
	VmEndpoint:             "unix:///var/run/docker.sock",
	ContractBuilder:        "palletone/goimg",
	SysContract:            map[string]string{"deposit_syscc": "true", "sample_syscc": "true", "createToken_sycc": "true"},
}

Functions

func SetConfig

func SetConfig(cfg *Config)

Types

type Config

type Config struct {
	//LogLevel               logging.Level
	ContractFileSystemPath string
	ContractAddress        string
	ContractExecutetimeout time.Duration
	ContractDeploytimeout  time.Duration
	VmEndpoint             string
	ContractBuilder        string
	SysContract            map[string]string
}

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

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