config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SESSION_ID_KEY  = "SESSION_ID_KEY"
	REQUEST_IP_KEY  = "REQUEST_IP_KEY"
	REQUEST_ID_KEY  = "REQUEST_ID_KEY"
	USER_ID_KEY     = "USER_ID_KEY"
	APP_ID          = "APP_ID"
	ENV_TYPE        = "ENV_TYPE"
	LOG_LEVEL       = "LOG_LEVEL"
	LOG_FILENAME    = "LOG_FILENAME"
	LOG_MAX_SIZE    = "LOG_MAX_SIZE"
	LOG_MAX_AGE     = "LOG_MAX_AGE"
	LOG_MAX_BACKUPS = "LOG_MAX_BACKUPS"
	LOG_JSON        = "LOG_JSON"
	LOG_CONSOLE     = "LOG_CONSOLE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config 配置

func New

func New(viper *viper.Viper) *Config

New 新配置

func (*Config) Load

func (c *Config) Load() error

Load 加载配置

Jump to

Keyboard shortcuts

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