Documentation ¶
Index ¶
- Constants
- Variables
- func AddComponents(instances ...Component)
- func DeferAdd(handle DeferHandler)
- func DeferRun()
- func GetComponentConfiguration(name string, conf interface{}) error
- func LoadComponents()
- func LoadConfigurationFile(path string) error
- func SignalHandle(handler *SignalHandler)
- func SignalNotify()
- type Component
- type DeferHandler
- type SignalHandler
Constants ¶
View Source
const ( Development = "development" Production = "production" )
Variables ¶
View Source
var EnvName string
View Source
var WorkDir string
Functions ¶
func GetComponentConfiguration ¶
GetComponentConfiguration 获取组件配置
func LoadConfigurationFile ¶
LoadConfigurationFile 加载配置
func SignalHandle ¶
func SignalHandle(handler *SignalHandler)
Types ¶
type DeferHandler ¶
type DeferHandler func()
type SignalHandler ¶
Click to show internal directories.
Click to hide internal directories.