Documentation
¶
Index ¶
- Constants
- func AllowAllHosts() bool
- func AllowedHosts() []string
- func AllowedOrigins() []string
- func ConfigDir() string
- func CoverArtArchiveDisabled() bool
- func DatabaseUrl() string
- func DeezerDisabled() bool
- func DefaultPassword() string
- func DefaultUsername() string
- func FullImageCacheEnabled() bool
- func ImportWindow() (time.Time, time.Time)
- func LbzRelayEnabled() bool
- func LbzRelayToken() string
- func LbzRelayUrl() string
- func ListenAddr() string
- func Load(getenv func(string) string, version string) error
- func LogLevel() int
- func MusicBrainzDisabled() bool
- func MusicBrainzRateLimit() int
- func MusicBrainzUrl() string
- func RateLimitDisabled() bool
- func SkipImport() bool
- func StructuredLogging() bool
- func ThrottleImportMs() int
- func UserAgent() string
Constants ¶
View Source
const ( // BASE_URL_ENV = "KOITO_BASE_URL" DATABASE_URL_ENV = "KOITO_DATABASE_URL" BIND_ADDR_ENV = "KOITO_BIND_ADDR" LISTEN_PORT_ENV = "KOITO_LISTEN_PORT" ENABLE_STRUCTURED_LOGGING_ENV = "KOITO_ENABLE_STRUCTURED_LOGGING" ENABLE_FULL_IMAGE_CACHE_ENV = "KOITO_ENABLE_FULL_IMAGE_CACHE" LOG_LEVEL_ENV = "KOITO_LOG_LEVEL" MUSICBRAINZ_URL_ENV = "KOITO_MUSICBRAINZ_URL" MUSICBRAINZ_RATE_LIMIT_ENV = "KOITO_MUSICBRAINZ_RATE_LIMIT" ENABLE_LBZ_RELAY_ENV = "KOITO_ENABLE_LBZ_RELAY" LBZ_RELAY_URL_ENV = "KOITO_LBZ_RELAY_URL" LBZ_RELAY_TOKEN_ENV = "KOITO_LBZ_RELAY_TOKEN" CONFIG_DIR_ENV = "KOITO_CONFIG_DIR" DEFAULT_USERNAME_ENV = "KOITO_DEFAULT_USERNAME" DEFAULT_PASSWORD_ENV = "KOITO_DEFAULT_PASSWORD" DISABLE_DEEZER_ENV = "KOITO_DISABLE_DEEZER" DISABLE_COVER_ART_ARCHIVE_ENV = "KOITO_DISABLE_COVER_ART_ARCHIVE" DISABLE_MUSICBRAINZ_ENV = "KOITO_DISABLE_MUSICBRAINZ" SKIP_IMPORT_ENV = "KOITO_SKIP_IMPORT" ALLOWED_HOSTS_ENV = "KOITO_ALLOWED_HOSTS" CORS_ORIGINS_ENV = "KOITO_CORS_ALLOWED_ORIGINS" DISABLE_RATE_LIMIT_ENV = "KOITO_DISABLE_RATE_LIMIT" THROTTLE_IMPORTS_MS = "KOITO_THROTTLE_IMPORTS_MS" IMPORT_BEFORE_UNIX_ENV = "KOITO_IMPORT_BEFORE_UNIX" IMPORT_AFTER_UNIX_ENV = "KOITO_IMPORT_AFTER_UNIX" )
Variables ¶
This section is empty.
Functions ¶
func AllowAllHosts ¶
func AllowAllHosts() bool
func AllowedHosts ¶
func AllowedHosts() []string
func AllowedOrigins ¶
func AllowedOrigins() []string
func CoverArtArchiveDisabled ¶
func CoverArtArchiveDisabled() bool
func DatabaseUrl ¶
func DatabaseUrl() string
func DeezerDisabled ¶
func DeezerDisabled() bool
func DefaultPassword ¶
func DefaultPassword() string
func DefaultUsername ¶
func DefaultUsername() string
func FullImageCacheEnabled ¶
func FullImageCacheEnabled() bool
func ImportWindow ¶
returns the before, after times, in that order
func LbzRelayEnabled ¶
func LbzRelayEnabled() bool
func LbzRelayToken ¶
func LbzRelayToken() string
func LbzRelayUrl ¶
func LbzRelayUrl() string
func ListenAddr ¶
func ListenAddr() string
func MusicBrainzDisabled ¶
func MusicBrainzDisabled() bool
func MusicBrainzRateLimit ¶
func MusicBrainzRateLimit() int
func MusicBrainzUrl ¶
func MusicBrainzUrl() string
func RateLimitDisabled ¶
func RateLimitDisabled() bool
func SkipImport ¶
func SkipImport() bool
func StructuredLogging ¶
func StructuredLogging() bool
func ThrottleImportMs ¶
func ThrottleImportMs() int
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.