config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default is the default config
	Default = Config{
		API: API{
			URL: "api.testnet.iotex.one:80",
		},
	}
)

Functions

This section is empty.

Types

type API

type API struct {
	URL string `yaml:"url"`
}

API is the api service config

type Config

type Config struct {
	API            API                         `yaml:"api"`
	Log            log.GlobalConfig            `yaml:"log"`
	SubLogs        map[string]log.GlobalConfig `yaml:"subLogs"`
	RunInterval    uint64                      `yaml:"runInterval"`
	GasLimit       uint64                      `yaml:"gaslimit"`
	GasPrice       uint64                      `yaml:"gasprice"`
	AlertThreshold uint64                      `yaml:"alertThreshold"`
	Transfer       transfer                    `yaml:"transfer"`
	Xrc20          xrc20                       `yaml:"xrc20"`
	Execution      execution                   `yaml:"execution"`
}

Config is the root config struct, each package's config should be put as its sub struct

func New

func New() (Config, error)

New create config

Jump to

Keyboard shortcuts

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