config

package
v0.0.0-...-9e8ec43 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Vars = struct {
	Host              string `mapstructure:"host"`
	PixivRefreshToken string `mapstructure:"pixiv_refresh_token"`
	PixivToken        string `mapstructure:"pixiv_token"`
	UserID            int    `mapstructure:"pixiv_user_id"`
	ThreadMax         int    `mapstructure:"thread_max"`
	VersionName       string `mapstructure:"version_name"`
	CacheDir          string `mapstructure:"cache_dir"`
}{}

Functions

func VarsConfigInit

func VarsConfigInit()

Types

type VarsConfig

type VarsConfig struct {
	Vipers     *viper.Viper
	UpdateFile bool
}
var VarsFile *VarsConfig

func (*VarsConfig) LoadConfig

func (is *VarsConfig) LoadConfig()

func (*VarsConfig) SaveConfig

func (is *VarsConfig) SaveConfig()

func (*VarsConfig) VarsUnmarshal

func (is *VarsConfig) VarsUnmarshal()

Jump to

Keyboard shortcuts

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