Documentation
¶
Index ¶
Constants ¶
View Source
const ( // RequestTimeout is the maximum duration to allow an API request to execute RequestTimeout = 20 * time.Second HTTPWriteTimeout = 30 * time.Second CacheTimeout = 3 * time.Second // DefaultConsumeProcessWriteTimeout consume context DefaultConsumeProcessWriteTimeout = 3 * time.Minute RequestGetMaxSize = int64(10 * 1024 * 1024) ConsumerMaxBytesDefault = 10e8 )
Variables ¶
View Source
var ( ErrChainsConfigMustBeStringMap = errors.New("Chain config must a string map") ErrChainsConfigIDEmpty = errors.New("Chain config ID is empty") ErrChainsConfigVMEmpty = errors.New("Chain config vm type is empty") ErrChainsConfigIDNotString = errors.New("Chain config ID is not a string") ErrChainsConfigAliasNotString = errors.New("Chain config alias is not a string") ErrChainsConfigVMNotString = errors.New("Chain config vm type is not a string") )
View Source
var PerformUpdates = false
PerformUpdates controls for performing sql update operations. Disabled by normal operation.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { NetworkID uint32 `json:"networkID"` Chains `json:"chains"` Stream `json:"stream"` Services `json:"services"` MetricsListenAddr string `json:"metricsListenAddr"` AdminListenAddr string `json:"adminListenAddr"` Features map[string]struct{} }
func NewFromFile ¶
NewFromFile creates a new *Config with the defaults replaced by the config in the file at the given path
Click to show internal directories.
Click to hide internal directories.