config

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 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

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