Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCfgPath

func GetCfgPath() string

func WriteFile

func WriteFile(path string, content []byte)

Types

type Config

type Config struct {
	RootPath         string `yaml:"RootPath"`
	TokenRefreshRate int64  `yaml:"TokenRefreshRate"`
	FileRefreshRate  int64  `yaml:"FileRefreshRate"`
	DownloadTimeout  int64  `yaml:"DownloadTimeout"`
	TokenBase64      string `yaml:"TokenBase64"`
}

func ReadConfig

func ReadConfig(_path string) *Config

func (Config) Bytes

func (cfg Config) Bytes() (b []byte)

Source Files