Documentation ¶
Index ¶
- Variables
- func GetCacheDir() string
- func GetDebugPackage() bool
- func GetDownloadPrefix() string
- func GetGPGKeys() []string
- func GetHostName() string
- func GetLogLevel() string
- func GetMD5() bool
- func GetModelsCacheDuration() time.Duration
- func GetModelsCacheRefreshRate() time.Duration
- func GetModelsFile() string
- func GetPackagesCacheCount() int
- func GetPackagesCacheDuration() time.Duration
- func GetPackagesCacheRefreshRate() time.Duration
- func GetPackagesDir() string
- func GetPort() string
- func GetScheme() string
- func GetStaticPrefix() string
- func InitConfig(cfgFile string, homeDir string)
Constants ¶
This section is empty.
Variables ¶
var SynoOptions *syno.Options
SynoOptions provides options for go-syno library
var Version string
Version is the current application version. This variable is populated when building the binary with: -ldflags "-X github.com/jdel/gosspks/cfg.Version=${VERSION}"
Functions ¶
func GetDebugPackage ¶
func GetDebugPackage() bool
GetDebugPackage returns true if the --debug-package flag is present
func GetDownloadPrefix ¶
func GetDownloadPrefix() string
GetDownloadPrefix returns the prefix for download URLs (packages)
func GetGPGKeys ¶
func GetGPGKeys() []string
GetGPGKeys returns a []string of GPG keys Keys have to be specified as an array in the config file
func GetLogLevel ¶
func GetLogLevel() string
GetLogLevel returns the log level. default value is "Error"
func GetModelsCacheDuration ¶
GetModelsCacheDuration returns the duration of the models cache
func GetModelsCacheRefreshRate ¶
GetModelsCacheRefreshRate returns the refresh rate of the packages cache
func GetModelsFile ¶
func GetModelsFile() string
GetModelsFile returns the prefix for download URLs (packages)
func GetPackagesCacheCount ¶
func GetPackagesCacheCount() int
GetPackagesCacheCount returns the number of packages collections to cache (one for each language)
func GetPackagesCacheDuration ¶
GetPackagesCacheDuration returns the duration of the packages cache
func GetPackagesCacheRefreshRate ¶
GetPackagesCacheRefreshRate returns the refresh rate of the packages cache
func GetStaticPrefix ¶
func GetStaticPrefix() string
GetStaticPrefix returns the prefix for static URLs (images)
func InitConfig ¶
InitConfig loads the config file according to cfgFile and homeDir flags from cmd/root.go
Types ¶
This section is empty.