config

package
v0.0.0-...-f7771fc Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func InitConfig

func InitConfig()

Types

type AppConfig

type AppConfig struct {
	Config *struct {
		Address string
		Path    string
		Port    uint64
	}

	*DataConfig
}
var ConfigData *AppConfig

type DataConfig

type DataConfig struct {
	Db *struct {
		Type     string `yaml:"type"`
		Ip       string `yaml:"ip"`
		Port     int    `yaml:"port"`
		User     string `yaml:"user"`
		Password string `yaml:"password"`
		MaxIdle  int    `yaml:"max_idle"`
		MaxOpen  int    `yaml:"max_open"`
	} `yaml:"db"`

	Redis *struct {
		Ip   string `yaml:"ip"`
		Port int    `yaml:"port"`
	} `yaml:"redis"`
	Gin *struct {
		RunMode string `yaml:"run_mode"`
	} `yaml:"gin"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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