configs

package
v0.0.0-...-8b17fe9 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

InitConfig 初始化所有配置

Types

type AppConf

type AppConf struct {
	Name   string             `yaml:"name"`
	DbList map[string]*DbConf `yaml:"db"`
	Baidu  Baidu              `yaml:"baidu"`
	Upload Upload             `yaml:"upload"`
}

func GetAppConf

func GetAppConf() *AppConf

type Baidu

type Baidu struct {
	Ak string `yaml:"ak"`
	Sk string `yaml:"sk"`
}

type DbConf

type DbConf struct {
	Dsn string `yaml:"dsn"`
}

type Reciver

type Reciver struct {
	Port string `yaml:"port"` // 本地gin监听的端口,可以直接对外暴漏,也可以走ngixn转发过来
	Uri  string `yaml:"uri"`  // 本地gin服务监听的URI
	Url  string `yaml:"url"`  // 上调到wkteam的回调URL地址
}

type Upload

type Upload struct {
	Path string `yaml:"path"`
}

type WebotConf

type WebotConf struct {
	Name   string `yaml:"name"`
	Wkteam Wkteam `yaml:"wkteam"`
}

func GetConf

func GetConf() *WebotConf

type Wkteam

type Wkteam struct {
	Account  string  `yaml:"account"`
	Password string  `yaml:"password"`
	BaseUrl  string  `yaml:"baseurl"`
	AuthKey  string  `yaml:"authkey"`
	WcId     string  `yaml:"wcid"`
	Reciver  Reciver `yaml:"reciver"`
}

Jump to

Keyboard shortcuts

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