config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 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 OneDriveConfig

type OneDriveConfig struct {
	DataBase         string `yaml:"Database"`
	RootPath         string `yaml:"RootPath"`
	TokenRefreshRate int64  `yaml:"TokenRefreshRate"`
	FileRefreshRate  int64  `yaml:"FileRefreshRate"`
	DownloadTimeout  int64  `yaml:"DownloadTimeout"`
	TokenBase64      string `yaml:"TokenBase64"`
}

func ReadOneDriveConfig

func ReadOneDriveConfig(_path string) *OneDriveConfig

func (OneDriveConfig) Bytes

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

Jump to

Keyboard shortcuts

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