conf

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Conf app global config
	Conf = &Config{}
)

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Name            string
	Version         bool
	Mode            string
	Addr            string
	Host            string
	Cdn             string
	DisableDingDing bool
}

AppConfig app config

type Config

type Config struct {
	// common
	App AppConfig
	// component config
	Logger        logger.Config
	ORM           orm.Config
	Mysql         mysql.Config
	Redis         redis.Config
	Elasticsearch elasticsearch.Config
}

Config global config

func Init

func Init(configPath string) *Config

Jump to

Keyboard shortcuts

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