config

package
v0.0.0-...-de73072 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Sql         SqlConfig
	ProjectPath string
	TLS         TLSStruct
	WeiXinApp   WeiXinAppStruct
)

Sql contain sql config Using in database

Functions

func Load

func Load(file string)

Load Config file

Types

type ConfigStruct

type ConfigStruct struct {
	Sql         SqlConfig
	ProjectPath string
	TLS         TLSStruct
	WeiXinApp   WeiXinAppStruct
}

ConfigStruct decide struct of config

type SqlConfig

type SqlConfig struct {
	Host string
	User string
	Pass string
	Port string
	Base string
}

SqlConfig contain sql config

func (SqlConfig) GenerateDSN

func (c SqlConfig) GenerateDSN() string

GenerateDSN GenerateDSN

type TLSStruct

type TLSStruct struct {
	Cert string
	Key  string
}

TLS config struct

type WeiXinAppStruct

type WeiXinAppStruct struct {
	Id      string
	Secrete string
}

Jump to

Keyboard shortcuts

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