config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

* * @Author: scjtqs * @Date: 2022/7/18 11:28 * @Email: scjtqs@qq.com

* * @Author: scjtqs * @Date: 2022/7/18 13:56 * @Email: scjtqs@qq.com

* * @Author: scjtqs * @Date: 2022/7/18 11:23 * @Email: scjtqs@qq.com

Index

Constants

View Source
const (
	ConfigNameVpork    = "vpork"
	ConfigNameVporkVip = "vpork_vip"
	ConfigNameCdpc     = "cdpc"
	ConfigNameLiuns    = "liuns"
	ConfigNamePucloud  = "pucloud"
)

Variables

This section is empty.

Functions

func GetCurrentPath

func GetCurrentPath() (string, error)

func LoadConf

func LoadConf(confFile string) ([]byte, error)

Types

type Option

type Option struct {
	Users  map[string][]*UserOption `yaml:"users"`
	QqPush QqPush                   `yaml:"qq_push"`
	Cron   string                   `yaml:"cron"` //  服务方式运行,定时签到的 crontab 定时参数配置
}

type QqPush

type QqPush struct {
	Cqq     string `yaml:"cqq"`
	QqToken string `yaml:"qq_token"`
}

QqPush 统一推送配置,不填不推送。

type UserOption

type UserOption struct {
	UserName     string `yaml:"user_name"`     // 账号名
	UserPassword string `yaml:"user_password"` // 账号密码
	Cqq          string `yaml:"cqq"`           // 单独配置的推送配置,选填
	QqToken      string `yaml:"qq_token"`      // 单独的推送配置,选填
	Domain       string `yaml:"domain"`        // 设定自定义的配置域名,用于机场换地址后免编译更新覆盖地址。或者同样一套架构的新机场。
}

Jump to

Keyboard shortcuts

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