Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger is a wrapper for log.Logger.
func NewFileLogger ¶
NewFileLogger returns a logger that logs to logFilename. The file is opened in append mode, and created if it does not exist.
type SatdConfig ¶
type SatdConfig struct { Name string `json:"name"` UserAgent string `json:"agent"` GatewayAddr string `json:"gateway"` APIAddr string `json:"api"` SatelliteAddr string `json:"satellite"` Dir string `json:"dir"` Bootstrap bool `json:"bootstrap"` DBUser string `json:"dbUser"` DBName string `json:"dbName"` PortalPort string `json:"portal"` }
SatdConfig contains the fields that are passed on to the new node.
func (*SatdConfig) Load ¶
func (sc *SatdConfig) Load(dir string) (ok bool, err error)
Load loads the configuration from disk.
func (*SatdConfig) Save ¶
func (sc *SatdConfig) Save(dir string) error
Save stores the configuration on disk.
Click to show internal directories.
Click to hide internal directories.