config

package
v0.0.0-...-209e9d0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	App = new(struct {
		AppMode      string
		Listen       string
		ReadTimeout  time.Duration
		WriteTimeout time.Duration
		LogDir       string
	})
	Jwt = new(struct {
		Secret     string
		Exp        int
		RefreshExp int
	})
	Database = new(struct {
		Host     string
		Port     int
		User     string
		Password string
		Db       string
	})
	Redis = new(struct {
		Host      string
		Port      int
		Password  string
		Db        int
		MaxIdle   int
		MaxActive int
	})
)

Functions

func Load

func Load(cfgPath string)

加载配置信息

Types

This section is empty.

Jump to

Keyboard shortcuts

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