contractcfg

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 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{

	IsJury:                 false,
	ContractAddress:        "127.0.0.1:12345",
	ContractExecutetimeout: time.Duration(20) * time.Second,
	ContractDeploytimeout:  time.Duration(180) * time.Second,
	CommonBuilder:          "palletone/goimg",
	GolangBuilder:          "palletone/goimg",
	JavaBuilder:            "palletone/javaimg",
	NodejsBuilder:          "palletone/nodejsimg",
	VmEndpoint:             "unix:///var/run/docker.sock",
	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 {
	IsJury                 bool          //是否是jury节点
	ContractAddress        string        //节点ip地址
	ContractExecutetimeout time.Duration //合约调用执行时间
	ContractDeploytimeout  time.Duration //合约部署执行时间
	CommonBuilder          string        //公共基础经镜像
	GolangBuilder          string        //Golang基础镜像
	JavaBuilder            string        //Java基础镜像
	NodejsBuilder          string        //Nodejs基础镜像
	VmEndpoint             string        //与docker服务连接协议
	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