config

package
v0.0.0-...-8b6cda5 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppConfig = &Config{}

Functions

func Setup

func Setup()

Types

type App

type App struct {
	LogMode       string
	GinRunMode    string //"debug","release","test"
	Version       string
	ReadTimeout   time.Duration
	WriteTimeout  time.Duration
	EndPointPort  int
	JwtSecret     string
	PageSize      int
	ObjectCashTtl int
}

type Config

type Config struct {
	App      App
	DataBase DataBase
	Redis    Redis
}

type DataBase

type DataBase struct {
	Host     string
	Port     int
	DbName   string
	Username string
	Password string
}

type Redis

type Redis struct {
	Host        string
	Password    string
	MaxIdle     int
	MaxActive   int
	IdleTimeout time.Duration
}

Jump to

Keyboard shortcuts

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