package
Version:
v0.0.0-...-d9ac2dc
Opens a new window with list of versions in this module.
Published: Feb 26, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type App struct {
AdminEmails []string `mapstructure:"admin_emails"`
DatasourceConnectionString string `mapstructure:"datasource_connection_string"`
LogLevel string `mapstructure:"log_level"`
Timezone string `mapstructure:"timezone"`
}
type Config struct {
App App `mapstructure:"app"`
Pritunl Pritunl `mapstructure:"pritunl"`
Webserver Webserver `mapstructure:"webserver"`
Slack Slack `mapstructure:"slack"`
Timezone *time.Location
}
type Pritunl struct {
Host string `mapstructure:"host"`
Token string `mapstructure:"token"`
Secret string `mapstructure:"secret"`
Organization string `mapstructure:"organization"`
WelcomeMessage string `mapstructure:"welcome_message"`
HostEU string `mapstructure:"host_eu"`
TokenEU string `mapstructure:"token_eu"`
SecretEU string `mapstructure:"secret_eu"`
OrganizationEU string `mapstructure:"organization_eu"`
}
type Slack struct {
AuthToken string `mapstructure:"auth_token"`
AppToken string `mapstructure:"app_token"`
Channel string `mapstructure:"channel"`
}
type Webserver struct {
ParentDomain string `mapstructure:"parent_domain"`
AllowedSubnets []string `mapstructure:"allowed_subnets"`
DeniedIPs []string `mapstructure:"denied_ips"`
Kind string `mapstructure:"kind"`
Service webserver.Webserver `mapstructure:"-"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.