Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlwaysEnabled ¶
type AlwaysEnabled struct{}
AlwaysEnabled 可用于嵌入,标识总是启用的应用
func (*AlwaysEnabled) IsEnabled ¶
func (a *AlwaysEnabled) IsEnabled() bool
type App ¶
type App interface {
Start() error // 应用的启动入口,包含初始化流程
IsEnabled() bool // 应用启动的检测条件,例如 consumer 的环境变量开关是否开启等
}
App 可部署的应用接口
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager() Manager
func (*Manager) RegisterInfra ¶
RegisterInfra 注册一个 Infra 实例
Click to show internal directories.
Click to hide internal directories.