config

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedis

func GetRedis() *redisConf

func GetSever

func GetSever() kernel.ServerConf

Types

type ElasticConf

type ElasticConf struct {
	Hosts []string
}

func GetElastic

func GetElastic() *ElasticConf

type MailConf

type MailConf struct {
	From     string
	Host     string
	Username string
	Password string
	Port     int
}

func GetMail

func GetMail() *MailConf

type MongoConf

type MongoConf struct {
	Database string
	Host     string
	Port     int
	User     string
	Password string
}

func GetMongo

func GetMongo() *MongoConf

type SQLConf

type SQLConf struct {
	Driver   string
	Host     string
	Port     int
	Database string
	User     string
	Password string
}

func GetSQL

func GetSQL() *SQLConf

Jump to

Keyboard shortcuts

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