configs

package
v0.0.0-...-3c2666d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version  = "2.0.0" // Version 版本号
	CommitId string    // CommitId 提交的短ID

)

Functions

func GetProxyAddr

func GetProxyAddr() string

GetProxyAddr 获取代理配置

func ReadConfigs

func ReadConfigs() (err error)

ReadConfigs 读取配置文件

Types

type App

type App struct {
	ProxyAddr        string `yaml:"proxyAddr"`        // ProxyAddr 代理地址
	TranslationAppID string `yaml:"translationAppid"` // TranslationAppID 百度翻译 APP ID
	TranslationKey   string `yaml:"translationKey"`   // TranslationKey 百度翻译 Key
}

App 应用配置

type Conf

type Conf struct {
	QQID        uint64 `yaml:"qqID"`        // QQID QQ帐号
	QQPassword  string `yaml:"qqPassword"`  // QQPassword QQ密码
	Databaseurl string `yaml:"databaseURL"` // Databaseurl 数据库地址
	App         App    `yaml:"app"`         // App 应用配置
}

Conf 配置

func GetAllConf

func GetAllConf() *Conf

GetAllConf 获取所有配置

Jump to

Keyboard shortcuts

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