Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SatdConfig ¶
type SatdConfig struct { Name string `json:"name"` GatewayAddr string `json:"gateway"` APIAddr string `json:"api"` SatelliteAddr string `json:"satellite"` MuxAddr string `json:"mux"` Dir string `json:"dir"` 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.