appconfig

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfig

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

Types

type AppConfig

type AppConfig struct {
	Env env.Option

	FilterKeys []string

	LogDir          string
	NotUseRotateLog bool

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

func MustLoadAppConfig

func MustLoadAppConfig(configPath string) *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