config

package
v0.0.0-...-3311072 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// LeaveOnInt quit server on int signal
	LeaveOnInt = true
	// LeaveOnTerm quit server on terminate signal
	LeaveOnTerm = true
)

Functions

This section is empty.

Types

type RedisCfg

type RedisCfg struct {
	Addr string
	Auth string
}

RedisCfg redis config

type ServerGeneralCfg

type ServerGeneralCfg struct {
	Host string
	Port int
}

ServerGeneralCfg general configure of service

type SrvcCfg

type SrvcCfg struct {
	ServerGeneral   ServerGeneralCfg
	Log             log.Config
	Database        database.DBConnectCfg
	WXCfg           wx.ClientCfg
	ALiYunCfg       aliyun.Config
	ImageCfg        image.Config
	LocalFileSystem string
	BCAdapterCfg    bcadapter.Config
	Redis           RedisCfg
}

SrvcCfg service configure

func GetServiceCfg

func GetServiceCfg(progName string) *SrvcCfg

GetServiceCfg returns the configurations for the service

Jump to

Keyboard shortcuts

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