config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var App = &AppConfig{}
View Source
var Cache = &CacheConfig{}

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	LogSavePath string
	LogSaveName string
	LogFileExt  string

	TimeFormat string
}

type CacheConfig

type CacheConfig struct {
	UseCache        bool
	UseSearchCache  bool
	UseMovieCache   bool
	UseTrailerCache bool
}

type Config

type Config struct {
	App   *AppConfig
	Cache *CacheConfig
}

func LoadConfig

func LoadConfig(path string) (*Config, error)

Jump to

Keyboard shortcuts

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