conf

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalConf = &Config{}
)

Functions

func InitConfig

func InitConfig()

Types

type AppConfig

type AppConfig struct {
	Port  string `json:"port"`
	Debug bool   `json:"debug"`
}

type Config

type Config struct {
	App    *AppConfig           `json:"app"`
	DB     *Db                  `json:"db"`
	ZapLog *zaplog.ZapLogConfig `yaml:"zaplog"`
}

type Db

type Db struct {
	DSN string `json:"dsn"`
}

Jump to

Keyboard shortcuts

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