Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagLogLevel = "log-level" FlagLogFormat = "log-format" FlagRedisHost = "redis-host" FlagRedisPort = "redis-port" FlagRedisPassword = "redis-password" FlagRedisDB = "redis-db" FlagHTTPTimeout = "http-timeout" FlagUpdatesAddr = "updates-addr" FlagUpdatesHost = "updates-host" FlagDownloadAddr = "download-addr" FlagDownloadHost = "download-host" FlagAccountID = "account-id" FlagLicenseKey = "license-key" FlagCacheDuration = "cache-duration" FlagDebugAddr = "debug-addr" FlagTranslateIngressNginxUrls = "translate-ingress-nginx-urls" )
View Source
const EnvPrefix = "GEOIP_"
View Source
const LevelTrace = slog.Level(-5)
Variables ¶
This section is empty.
Functions ¶
func LogFormatStrings ¶ added in v0.1.0
func LogFormatStrings() []string
LogFormatStrings returns a slice of all String values of the enum
func RegisterCompletions ¶
Types ¶
type Config ¶
type Config struct { RedisHost string RedisPort uint16 RedisPassword string RedisDB int HTTPTimeout time.Duration UpdatesAddr string UpdatesHost string DownloadAddr string DownloadHost string AccountID int LicenseKey string CacheDuration time.Duration DebugAddr string TranslateIngressNginxPaths bool // contains filtered or unexported fields }
func NewDefault ¶
func NewDefault() *Config
func (*Config) RegisterFlags ¶
type LogFormat ¶ added in v0.1.0
type LogFormat uint8
func LogFormatString ¶ added in v0.1.0
LogFormatString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func LogFormatValues ¶ added in v0.1.0
func LogFormatValues() []LogFormat
LogFormatValues returns all values of the enum
func (LogFormat) IsALogFormat ¶ added in v0.1.0
IsALogFormat returns "true" if the value is listed in the enum definition. "false" otherwise
func (LogFormat) MarshalText ¶ added in v0.1.0
MarshalText implements the encoding.TextMarshaler interface for LogFormat
func (*LogFormat) UnmarshalText ¶ added in v0.1.0
UnmarshalText implements the encoding.TextUnmarshaler interface for LogFormat
Click to show internal directories.
Click to hide internal directories.