config

package
v0.0.0-...-5aa83a4 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *gorm.DB

GetDB ...

func SetDB

func SetDB(db *gorm.DB)

SetDB ...

Types

type Config

type Config struct {
	Listen       string   `toml:"listen"`
	SaltMinions  []string `toml:"salt_minions"`
	SaltAPI      string   `toml:"salt_api"`
	SaltUsername string   `toml:"salt_username"`
	SaltPassword string   `toml:"salt_password"`
	RedisURL     string   `toml:"redis_url"`
	NginxLogPath string   `toml:"nginx_log_path"`
	MysqlUrl     string   `toml:"mysql_url"`
	AppID        string   `toml:"app_id"`
	Secret       string   `toml:"secret"`
	AccessKey    string   `toml:"access_key"`
}

Config ...

var (
	Conf *Config
)

Conf ...

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig ...

Jump to

Keyboard shortcuts

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