config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 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 Downloads = "downloads"
View Source
const Exclude = "exclude"
View Source
const ExternalHost = "external_host"
View Source
const Generated = "generated"
View Source
const Host = "host"
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 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 ScrapersPath = "scrapers_path"
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 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 GetGeneratedPath

func GetGeneratedPath() string

func GetHost

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

func GetScrapersPath() string

func GetShowStudioAsText

func GetShowStudioAsText() bool

func GetSoundOnPreview

func GetSoundOnPreview() bool

Interface options

func GetStashPaths

func GetStashPaths() []string

func GetUsername

func GetUsername() 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 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