Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.0.3
type Config struct { LogLevel LogLevel `default:"info" split_words:"true"` LogFile string `split_words:"true"` ServerAddress string `default:":5050" split_words:"true"` TLSCertFile string `split_words:"true" required:"true"` TLSKeyFile string `split_words:"true" required:"true"` MeshCentralURL string `split_words:"true" required:"true"` MeshCentralURLParsed *url.URL MeshCentralGroupPrefix string `split_words:"true" default:"plexus"` MeshCentralUser string `split_words:"true" required:"true"` MeshCentralPass string `split_words:"true" required:"true"` MeshCentralDomain string `split_words:"true" default:"control"` PathPrefix string `split_words:"true" default:"/"` ExternalHost string `split_words:"true"` AuthUser string `split_words:"true"` AuthPass string `split_words:"true"` PairingURL string `split_words:"true"` PairingTTL int `split_words:"true"` CompanyName string `split_words:"true"` CompanyLogo string `split_words:"true"` }
Config represents the application configuration.
func (*Config) AsControlConfig ¶ added in v0.0.5
func (*Config) AsPairingConfig ¶ added in v0.0.6
func (s *Config) AsPairingConfig() *PairingConfig
func (*Config) MeshCentralAgentURL ¶ added in v0.0.3
func (*Config) MeshCentralControlURL ¶ added in v0.0.3
func (*Config) MeshRelayURL ¶ added in v0.0.3
type LogLevel ¶ added in v0.0.3
LogLevel type that provides helper methods for decoding.
func (LogLevel) AsZeroLogLevel ¶ added in v0.0.3
AsZeroLogLevel converts the LogLevel to a zerolog.Level.
Click to show internal directories.
Click to hide internal directories.