Documentation ¶
Index ¶
- func GenerateAddress(protocol string, hostname string, port int) string
- func IsFileEmpty(path string) (bool, error)
- func PortToAddress(port int) string
- func ToToml(v any) (string, error)
- type AuthConfig
- type ControlConfiguration
- type Database
- type Groundstation
- type SSHConf
- type Satellite
- type SatelliteConfiguration
- type Server
- type Timeouts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFileEmpty ¶
func PortToAddress ¶
Types ¶
type AuthConfig ¶
type ControlConfiguration ¶
type ControlConfiguration struct { Timeouts Timeouts `toml:"timeouts"` Server Server `toml:"server"` Database Database `toml:"database"` Auth AuthConfig `toml:"auth"` SSH SSHConf `toml:"onboard"` // TODO: Change name to ssh_configuration, deferred due to it being a breaking change }
func DefaultControlConfiguration ¶
func DefaultControlConfiguration() ControlConfiguration
func GetControl ¶
func GetControl(filename string) (ControlConfiguration, error)
type Groundstation ¶
type SSHConf ¶
type SSHConf struct { DataDir string `toml:"datadir"` KeyPath string `toml:"keyfile"` Username string `toml:"username"` RemoteConf SatelliteConfiguration `toml:"remote"` }
type SatelliteConfiguration ¶
type SatelliteConfiguration struct { Groundstation Groundstation `toml:"groundstation"` Satellite Satellite `toml:"satellite"` }
func DefaultSatelliteConfiguration ¶
func DefaultSatelliteConfiguration() SatelliteConfiguration
func GetSatellite ¶
func GetSatellite(filename string) (SatelliteConfiguration, error)
type Timeouts ¶
type Timeouts struct { DeathTimeout_ time.Duration `toml:"death_timeout"` MonitorInterval_ time.Duration `toml:"monitor_interval"` }
func (Timeouts) DeathTimeout ¶
func (Timeouts) MonitorInterval ¶
Click to show internal directories.
Click to hide internal directories.