Documentation ¶
Index ¶
- Constants
- type ContextKey
- type Event
- func (cli *Event) GetAction() string
- func (cli *Event) GetActionTime() time.Time
- func (cli *Event) GetCurrData() MapStr
- func (cli *Event) GetPreData() MapStr
- func (cli *Event) SetAction(action string)
- func (cli *Event) SetActionTime(tm time.Time)
- func (cli *Event) SetCurrData(data MapStr)
- func (cli *Event) SetPreData(data MapStr)
- type EventCallbackFunc
- type EventKey
- type EventType
- type MapStr
- func (cli MapStr) Bool(key string) bool
- func (cli MapStr) Different(target MapStr) (more MapStr, less MapStr, changes MapStr)
- func (cli MapStr) Exists(key string) bool
- func (cli MapStr) Float(key string) (float64, error)
- func (cli MapStr) ForEach(callItem func(key string, val interface{}))
- func (cli MapStr) Get(key string) (val interface{}, exists bool)
- func (cli MapStr) Int(key string) (int, error)
- func (cli MapStr) Int64(key string) (int64, error)
- func (cli MapStr) IsEmpty() bool
- func (cli MapStr) MapStr(key string) (MapStr, error)
- func (cli MapStr) MapStrArray(key string) ([]MapStr, error)
- func (cli MapStr) Merge(second MapStr)
- func (cli MapStr) Remove(key string) interface{}
- func (cli MapStr) Reset()
- func (cli MapStr) Set(key string, value interface{})
- func (cli MapStr) String(key string) string
- func (cli MapStr) Time(key string) (*time.Time, error)
- func (cli MapStr) ToJSON() []byte
Constants ¶
View Source
const ( // FrameworkKey the framework identifier FrameworkKey ContextKey = "cmdb_v3_framework" // EventHostType the host event EventHostType EventType = "cmdb_v3_event_host_type" // EventBusinessType the business event EventBusinessType EventType = "cmdb_v3_event_business_type" // EventModuleType the module event EventModuleType EventType = "cmdb_v3_event_module_type" // EventModuleTransferType the module transfer event EventModuleTransferType EventType = "cmdb_v3_event_moduletransfer_type" // EventHostIdentifierType the host identifier EventHostIdentifierType EventType = "cmdb_v3_event_hostidentifier_type" // EventSetType the set event EventSetType EventType = "cmdb_v3_event_set_type" // EventInstType the custom inst event EventInstType EventType = "cmdb_v3_event_inst_type" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
Event the cmdb event definition
func (*Event) GetActionTime ¶
GetActionTime get the action time
func (*Event) SetActionTime ¶
SetActionTime set the action time
func (*Event) SetCurrData ¶
SetCurrData set the event data
type EventCallbackFunc ¶
EventCallbackFunc the event deal function
type MapStr ¶
type MapStr map[string]interface{}
MapStr the common event data definition
func (MapStr) Different ¶
Different the current value is different from the content of the given data
func (MapStr) MapStrArray ¶
MapStrArray get the MapStr object array
func (MapStr) Merge ¶
Merge merge second into self,if the key is the same then the new value replaces the old value.
Click to show internal directories.
Click to hide internal directories.