config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

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