Documentation
¶
Index ¶
- type AdminAPIConfig
- type Config
- func (s *Config) CleanAdminPassword()
- func (s *Config) ConfigDir() string
- func (s *Config) Flush() error
- func (s *Config) GetPublicAPIConfig() *PublicAPIConfig
- func (s *Config) InitialSetupRequired() bool
- func (s *Config) PublicURL() string
- func (s *Config) SetAdminPassword(plain string) error
- func (s *Config) SetPublicIP(newIP xnet.IP) error
- func (s *Config) VerifyAdminPassword(given string) error
- type HttpConfig
- type PublicAPIConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminAPIConfig ¶
type Config ¶
type Config struct { LogLevel string `yaml:"log_level"` SQLitePath string `yaml:"sqlite_path" valid:"path,required"` Rapidoc bool `yaml:"rapidoc"` Wireguard wireguard.Config `yaml:"wireguard"` HTTP HttpConfig `yaml:"http"` // optional configuration SSL *xhttp.SSLConfig `yaml:"ssl,omitempty"` Domain *xhttp.DomainConfig `yaml:"domain,omitempty"` AdminAPI *AdminAPIConfig `yaml:"admin_api,omitempty"` PublicAPI *PublicAPIConfig `yaml:"public_api,omitempty"` GRPC *grpc.Config `yaml:"grpc,omitempty"` Sentry *sentry.Config `yaml:"sentry,omitempty"` EventLog *eventlog.StorageConfig `yaml:"event_log,omitempty"` ManagementKeystore string `yaml:"management_keystore,omitempty" valid:"path"` // contains filtered or unexported fields }
func LoadStatic ¶
func (*Config) CleanAdminPassword ¶
func (s *Config) CleanAdminPassword()
func (*Config) GetPublicAPIConfig ¶
func (s *Config) GetPublicAPIConfig() *PublicAPIConfig
func (*Config) InitialSetupRequired ¶
func (*Config) PublicURL ¶
PublicURL returns a URL of this node. Use SSL configuration if given, otherwise it returns http://wireguard_ip:http_listen_port
func (*Config) SetAdminPassword ¶
func (*Config) VerifyAdminPassword ¶
type HttpConfig ¶
type PublicAPIConfig ¶
Click to show internal directories.
Click to hide internal directories.