config

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AutostartVideo = "autostart_video"
View Source
const CSSEnabled = "cssEnabled"
View Source
const Cache = "cache"
View Source
const Database = "database"
View Source
const DefaultMaxSessionAge = 60 * 60 * 1 // 1 hours
View Source
const Downloads = "downloads"
View Source
const Exclude = "exclude"
View Source
const ExternalHost = "external_host"
View Source
const ForceHEVC = "forceHEVC"
View Source
const ForceMKV = "forceMKV"

Playback force codec,container

View Source
const Generated = "generated"
View Source
const Host = "host"
View Source
const JWTSignKey = "jwt_secret_key"

key used to sign JWT tokens

View Source
const Language = "language"

i18n

View Source
const LogAccess = "logAccess"
View Source
const LogFile = "logFile"

Logging options

View Source
const LogLevel = "logLevel"
View Source
const LogOut = "logOut"
View Source
const MaxSessionAge = "max_session_age"
View Source
const MaxStreamingTranscodeSize = "max_streaming_transcode_size"
View Source
const MaxTranscodeSize = "max_transcode_size"
View Source
const MaximumLoopDuration = "maximum_loop_duration"
View Source
const Metadata = "metadata"
View Source
const Password = "password"
View Source
const Port = "port"
View Source
const ScraperUserAgent = "scraper_user_agent"
View Source
const ScrapersPath = "scrapers_path"

scraping options

View Source
const SessionStoreKey = "session_store_key"

key used for session store

View Source
const ShowStudioAsText = "show_studio_as_text"
View Source
const SoundOnPreview = "sound_on_preview"

Interface options

View Source
const Stash = "stash"
View Source
const Username = "username"
View Source
const WallPlayback = "wall_playback"
View Source
const WallShowTitle = "wall_show_title"

Variables

This section is empty.

Functions

func GetAutostartVideo

func GetAutostartVideo() bool

func GetCSS

func GetCSS() string

func GetCSSEnabled

func GetCSSEnabled() bool

func GetCSSPath

func GetCSSPath() string

func GetCachePath

func GetCachePath() string

func GetCredentials

func GetCredentials() (string, string)

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 GetForceMKV added in v0.2.0

func GetForceMKV() bool

force codec,container

func GetGeneratedPath

func GetGeneratedPath() string

func GetHost

func GetHost() 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 GetPort

func GetPort() int

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 GetSoundOnPreview

func GetSoundOnPreview() bool

Interface options

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 IsValid

func IsValid() bool

func Set

func Set(key string, value interface{})

func SetCSS

func SetCSS(css string)

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

func ValidateCredentials(username string, password string) bool

func Write

func Write() error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL