algoh

package
v0.0.0-...-15eb78e Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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