config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConf

type AppConf interface {
	// 是否调试模式运行
	IsDebugMode() bool

	// 日志等级
	GetLogLevel() string

	// 区别不同节点的id
	GetNodeID() int

	// http本地监听端口
	GetHTTPPort() int

	// consul地址
	GetConsulAddr() string
}

AppConf ...

type Conf

type Conf interface {
	AppConf
}

Conf ...

func Instance

func Instance() Conf

Instance ...

Jump to

Keyboard shortcuts

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