config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppVersion

func GetAppVersion() string

Types

type CookieC

type CookieC struct {
	KuaishouCookie string `json:"kuaishou_cookie" mapstructure:"kuaishou_cookie"`
	XiguaCookie    string `json:"xigua_cookie" mapstructure:"xigua_cookie"`
}

func GetCookieInstance

func GetCookieInstance() *CookieC

type GlobalC

type GlobalC struct {
	AppPath   string     `json:"app_path"`
	CookieC   *CookieC   `json:"cookie_c"`
	LogC      *LogC      `json:"log_c"`
	TelegramC *TelegramC `json:"telegram_c"`
}

func GetGlobalInstance

func GetGlobalInstance() *GlobalC

type LogC

type LogC struct {
	MaxSize    int `json:"max_size" mapstructure:"max_size"`
	MaxAge     int `json:"max_age" mapstructure:"max_age"`
	MaxBackups int `json:"max_backups" mapstructure:"max_backups"`
}

func GetLogInstance

func GetLogInstance() *LogC

type TelegramC

type TelegramC struct {
	ApiToken string `json:"api_token" mapstructure:"api_token"`
}

func GetTelegramInstance

func GetTelegramInstance() *TelegramC

Jump to

Keyboard shortcuts

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