config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Bind              string              `yaml:"bind"`
	Debug             bool                `yaml:"debug"`
	DebugGin          bool                `yaml:"debugGin"`
	BaseURL           string              `yaml:"baseURL"`
	CacheDir          string              `yaml:"cacheDir"`
	OpenProxyDownload bool                `yaml:"proxyDownload"`
	Github            *cache.GithubConfig `yaml:"github"`
}

Config of the server

func Parse

func Parse(filename string) (*Config, error)

Parse config instance from yaml file

func (*Config) CacheURLBase

func (c *Config) CacheURLBase() string

CacheURLBase the public base url for cache dir.

func (*Config) CacheURLPath

func (c *Config) CacheURLPath() string

CacheURLPath the url path of handling cache files.

Jump to

Keyboard shortcuts

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