appconfig

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig

func ParseConfig(path string, configPtr *AppConfig) (err error)

Types

type AppConfig

type AppConfig struct {
	ConfPath string

	Env env.Option

	FilterKeys   []string
	FilterValues []string

	StdRedirectFileSupport   bool
	DefaultMySQLSupport      bool
	DefaultClickhouseSupport bool
	DefaultRedisSupport      bool
	DefaultMongoDBSupport    bool
	AliyunOSSSupport         bool
}

func MustLoadAppConfig

func MustLoadAppConfig() *AppConfig

MustLoadAppConfig 加载 app.toml ,若失败,会 panic

func (*AppConfig) Check

func (c *AppConfig) Check() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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