Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigFilename = "host-config.json"
ConfigFilename is the name of algoh's config file
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostConfig ¶
type HostConfig struct { SendBlockStats bool UploadOnError bool DeadManTimeSec int64 StatusDelayMS int64 StallDelayMS int64 }
HostConfig is algoh's configuration structure
func LoadConfigFromFile ¶
func LoadConfigFromFile(file string) (cfg HostConfig, err error)
LoadConfigFromFile loads the configuration from the specified file, merging into the default configuration.
func (HostConfig) Dump ¶
func (cfg HostConfig) Dump(stream io.Writer)
Dump pretty-prints the configuration into the the specified stream.
func (HostConfig) Save ¶
func (cfg HostConfig) Save(file string) error
Save pretty-prints the configuration into the the specified file.
Click to show internal directories.
Click to hide internal directories.