config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DEFAULT_CONFIG_FILE_NAME = "./config.json"
	DEFAULT_LOG_LEVEL        = 2
)

Variables

View Source
var DefConfig = NewConfig()

Default config instance

Functions

This section is empty.

Types

type Config

type Config struct {
	RelayJsonRpcUrl   string
	WalletFile        string
	RelayAccountsPath string
	NeoMagic          uint32
	NeoWalletFile     string
	NeoJsonRpcUrl     string
	NeoChainID        uint64
	NeoCCMC           string // big endian string, like 0x1234567812345678123456781234567812345678
	NtorContract      string
	RtonContract      string
	ScanInterval      uint64
	RetryInterval     uint64
	DBPath            string
	ChangeBookkeeper  bool
	PolyStartHeight   uint32
	NeoStartHeight    uint32
}

Config object used by neo-instance

func NewConfig

func NewConfig() *Config

NewConfig retuen a TestConfig instance

func (*Config) Init

func (this *Config) Init(fileName string) error

Init TestConfig with a config file

Jump to

Keyboard shortcuts

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