Documentation ¶
Index ¶
- Constants
- func Delete(mgr *Manager) error
- type Action
- type FrameworkContext
- type Manager
- func (m *Manager) Actions() []httpserver.Action
- func (cli *Manager) CreateFrameworkContext() FrameworkContext
- func (cli *Manager) RegisterEvent(key types.EventKey, eventType types.EventType, ...) types.EventKey
- func (cli *Manager) Run(ctx context.Context, cancel context.CancelFunc)
- func (cli *Manager) UnRegisterEvent(eventKey types.EventKey)
Constants ¶
View Source
const ( EventHost = "host" EventHostIdentifier = "hostidentifier" EventSet = "set" EventModule = "module" EventBusiness = "biz" EventPlat = "plat" EventInst = "inst" EventModuleTransfer = "moduletransfer" EventActionCreate = "create" EventActionDelete = "delete" EventActionUpdate = "update" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { Method string Path string HandlerFunc func(data types.MapStr) (types.MapStr, error) }
Action the http action
type FrameworkContext ¶
type FrameworkContext interface { }
FrameworkContext definition the framework context
type Manager ¶
type Manager struct { OutputerMgr output.Manager InputerMgr input.Manager // contains filtered or unexported fields }
Manager contains the basic framework data and the publisher client used to publis events.
func (*Manager) Actions ¶
func (m *Manager) Actions() []httpserver.Action
Actions returns metricActions
func (*Manager) CreateFrameworkContext ¶
func (cli *Manager) CreateFrameworkContext() FrameworkContext
CreateFrameworkContext create a new framework context instance
func (*Manager) RegisterEvent ¶
func (cli *Manager) RegisterEvent(key types.EventKey, eventType types.EventType, eventFunc types.EventCallbackFunc) types.EventKey
RegisterEvent register cmdb 3.0 event
func (*Manager) Run ¶
func (cli *Manager) Run(ctx context.Context, cancel context.CancelFunc)
Run start the business cycle until the stop method is called.
func (*Manager) UnRegisterEvent ¶
UnRegisterEvent unregister cmdb 3.0 event
Click to show internal directories.
Click to hide internal directories.