Versions in this module Expand all Collapse all v0 v0.1.0 Nov 21, 2026 Changes in this version + const DefaultHost + const DefaultLogFormat + const DefaultLogLevel + const DefaultPort + func DefaultTMDBKey() string + func DefaultTraktClientID() string + func EnsureAPIKey(cfg *Config) (generated bool, err error) + func WriteConfigKey(configFile, key, value string) (writePath string, err error) + type AuthConfig struct + APIKey Secret + PasswordHash Secret + Required string + Username string + type Config struct + Auth AuthConfig + ConfigFile string + Database DatabaseConfig + Log LogConfig + Pulse PulseConfig + Server ServerConfig + TMDB TMDBConfig + TMDBKeyIsDefault bool + Trakt TraktConfig + func Load(cfgFile string) (*Config, error) + type DatabaseConfig struct + Path string + type LogConfig struct + Format string + Level string + type PulseConfig struct + APIKey Secret + APIKeyFile string + URL string + type Secret string + func (s Secret) GoString() string + func (s Secret) IsEmpty() bool + func (s Secret) LogValue() slog.Value + func (s Secret) MarshalJSON() ([]byte, error) + func (s Secret) MarshalText() ([]byte, error) + func (s Secret) String() string + func (s Secret) Value() string + type ServerConfig struct + Host string + Port int + type TMDBConfig struct + APIKey Secret + type TraktConfig struct + ClientID Secret