config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbInit

func DbInit() (*xorm.Engine, error)

Types

type CliConfig

type CliConfig struct {
	ServerName string
	ConsulConf *consulapi.Config
	TlsConf    *tls.Config
}

CliConfig 服务配置

func CliInit

func CliInit(section string) *CliConfig

CliInit 服务配置初始化 section 服务实例节点名称

type SrvConfig

type SrvConfig struct {
	ServerName string
	ConsulConf *consulapi.Config
	TlsConf    *tls.Config
	LogTrack   bool
}

SrvConfig 服务配置

func SrvInit

func SrvInit() *SrvConfig

SrvInit 服务配置初始化

Jump to

Keyboard shortcuts

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