conf

package
v0.0.0-...-6c253c0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Types

type C

type C struct {
	Mysql  Mysql
	Redis  Redis
	Server Server
	Mq     Mq
}

func GetSettings

func GetSettings() C

type Mq

type Mq struct {
	Host     string
	Port     int
	User     string
	Password string
}

type Mysql

type Mysql struct {
	DbName      string
	Host        string
	Port        string
	User        string
	Password    string
	MaxIdleConn int
	MaxOpenConn int
	ShowSQL     bool
}

type Redis

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

type Server

type Server struct {
	Port int
}

Jump to

Keyboard shortcuts

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