configs

package
v0.0.0-...-baf6233 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 Baidu

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

type DbConf

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

type Upload

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

type WebotConf

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

func GetConf

func GetConf() *WebotConf

Jump to

Keyboard shortcuts

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