Documentation ¶
Overview ¶
Package config manages everything related to the config file of a running host instance.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PID string `json:"pid,omitempty"` HostKey string `json:"host_key,omitempty"` Home string `json:"home,omitempty"` DbID string `json:"db_id,omitempty"` DbPass string `json:"db_pass,omitempty"` File string `json:"-"` }
Config holds all information about a running host instance.
func Ensure ¶
Ensure opens and writes a config file in exclusive mode ensuring that only one host instance is running.
func (*Config) EnsurePaths ¶
EnsurePaths ensures that all paths necessary for proper host functioning exist.
Click to show internal directories.
Click to hide internal directories.