Documentation ¶
Index ¶
- Constants
- func GetAutostartVideo() bool
- func GetCSS() string
- func GetCSSEnabled() bool
- func GetCSSPath() string
- func GetCachePath() string
- func GetCredentials() (string, string)
- func GetDatabasePath() string
- func GetDefaultScrapersPath() string
- func GetExcludes() []string
- func GetExternalHost() string
- func GetForceHEVC() bool
- func GetForceMKV() bool
- func GetGeneratedPath() string
- func GetHost() string
- func GetJWTSignKey() []byte
- func GetLanguage() string
- func GetLogAccess() bool
- func GetLogFile() string
- func GetLogLevel() string
- func GetLogOut() bool
- func GetMaxSessionAge() int
- func GetMaxStreamingTranscodeSize() models.StreamingResolutionEnum
- func GetMaxTranscodeSize() models.StreamingResolutionEnum
- func GetMaximumLoopDuration() int
- func GetMetadataPath() string
- func GetPasswordHash() string
- func GetPort() int
- func GetScraperUserAgent() string
- func GetScrapersPath() string
- func GetSessionStoreKey() []byte
- func GetShowStudioAsText() bool
- func GetSoundOnPreview() bool
- func GetStashPaths() []string
- func GetUsername() string
- func GetWallPlayback() string
- func GetWallShowTitle() bool
- func HasCredentials() bool
- func IsValid() bool
- func Set(key string, value interface{})
- func SetCSS(css string)
- func SetInitialConfig() error
- func SetPassword(value string)
- func ValidateCredentials(username string, password string) bool
- func Write() error
Constants ¶
const AutostartVideo = "autostart_video"
const CSSEnabled = "cssEnabled"
const Cache = "cache"
const Database = "database"
const DefaultMaxSessionAge = 60 * 60 * 1 // 1 hours
const Downloads = "downloads"
const Exclude = "exclude"
const ExternalHost = "external_host"
const ForceHEVC = "forceHEVC"
const ForceMKV = "forceMKV"
Playback force codec,container
const Generated = "generated"
const Host = "host"
const JWTSignKey = "jwt_secret_key"
key used to sign JWT tokens
const Language = "language"
i18n
const LogAccess = "logAccess"
const LogFile = "logFile"
Logging options
const LogLevel = "logLevel"
const LogOut = "logOut"
const MaxSessionAge = "max_session_age"
const MaxStreamingTranscodeSize = "max_streaming_transcode_size"
const MaxTranscodeSize = "max_transcode_size"
const MaximumLoopDuration = "maximum_loop_duration"
const Metadata = "metadata"
const Password = "password"
const Port = "port"
const ScraperUserAgent = "scraper_user_agent"
const ScrapersPath = "scrapers_path"
scraping options
const SessionStoreKey = "session_store_key"
key used for session store
const ShowStudioAsText = "show_studio_as_text"
const SoundOnPreview = "sound_on_preview"
Interface options
const Stash = "stash"
const Username = "username"
const WallPlayback = "wall_playback"
const WallShowTitle = "wall_show_title"
Variables ¶
This section is empty.
Functions ¶
func GetAutostartVideo ¶
func GetAutostartVideo() bool
func GetCSSEnabled ¶
func GetCSSEnabled() bool
func GetCSSPath ¶
func GetCSSPath() string
func GetCachePath ¶
func GetCachePath() string
func GetCredentials ¶
func GetDatabasePath ¶
func GetDatabasePath() string
func GetDefaultScrapersPath ¶
func GetDefaultScrapersPath() string
func GetExcludes ¶
func GetExcludes() []string
func GetExternalHost ¶
func GetExternalHost() string
func GetForceHEVC ¶ added in v0.2.0
func GetForceHEVC() bool
func GetGeneratedPath ¶
func GetGeneratedPath() string
func GetJWTSignKey ¶ added in v0.2.0
func GetJWTSignKey() []byte
func GetLanguage ¶ added in v0.2.0
func GetLanguage() string
func GetLogAccess ¶
func GetLogAccess() bool
GetLogAccess returns true if http requests should be logged to the terminal. HTTP requests are not logged to the log file. Defaults to true.
func GetLogFile ¶
func GetLogFile() string
GetLogFile returns the filename of the file to output logs to. An empty string means that file logging will be disabled.
func GetLogLevel ¶
func GetLogLevel() string
GetLogLevel returns the lowest log level to write to the log. Should be one of "Debug", "Info", "Warning", "Error"
func GetLogOut ¶
func GetLogOut() bool
GetLogOut returns true if logging should be output to the terminal in addition to writing to a log file. Logging will be output to the terminal if file logging is disabled. Defaults to true.
func GetMaxSessionAge ¶ added in v0.2.0
func GetMaxSessionAge() int
GetMaxSessionAge gets the maximum age for session cookies, in seconds. Session cookie expiry times are refreshed every request.
func GetMaxStreamingTranscodeSize ¶
func GetMaxStreamingTranscodeSize() models.StreamingResolutionEnum
func GetMaxTranscodeSize ¶
func GetMaxTranscodeSize() models.StreamingResolutionEnum
func GetMaximumLoopDuration ¶
func GetMaximumLoopDuration() int
func GetMetadataPath ¶
func GetMetadataPath() string
func GetPasswordHash ¶
func GetPasswordHash() string
func GetScraperUserAgent ¶ added in v0.2.0
func GetScraperUserAgent() string
func GetScrapersPath ¶
func GetScrapersPath() string
func GetSessionStoreKey ¶ added in v0.2.0
func GetSessionStoreKey() []byte
func GetShowStudioAsText ¶
func GetShowStudioAsText() bool
func GetStashPaths ¶
func GetStashPaths() []string
func GetUsername ¶
func GetUsername() string
func GetWallPlayback ¶ added in v0.2.0
func GetWallPlayback() string
func GetWallShowTitle ¶
func GetWallShowTitle() bool
func HasCredentials ¶
func HasCredentials() bool
func SetInitialConfig ¶ added in v0.2.0
func SetInitialConfig() error
SetInitialConfig fills in missing required config fields
func SetPassword ¶
func SetPassword(value string)
func ValidateCredentials ¶
Types ¶
This section is empty.