Documentation
¶
Index ¶
- Constants
- func Dispatch(event Event, shared ishared.Shared, node uint64)
- func DispatchGroup(events []Event, shared ishared.Shared, node uint64)
- func Handle(kindRegistry map[string]ikinds.Kind, informer *distributed.Informer, ...)
- func Listen(kindRegistry map[string]ikinds.Kind, e chan KV.KV, ...)
- type Event
- func (event Event) GetContainerId() string
- func (event Event) GetData() []byte
- func (event Event) GetGroup() string
- func (event Event) GetKey() string
- func (event Event) GetKind() string
- func (event Event) GetName() string
- func (event Event) GetNetworkId() string
- func (event Event) GetPrefix() string
- func (event Event) GetTarget() string
- func (event Event) GetType() string
- func (event Event) IsEmpty() bool
- func (event Event) IsManaged() bool
- func (event Event) Propose(proposeC *raft.KVStore, node uint64) error
- func (e Event) SetName(name string) Event
- func (event Event) ToJson() ([]byte, error)
- type EventGroup
Constants ¶
View Source
const EVENT_CHANGE = "change"
View Source
const EVENT_CHANGED = "changed"
View Source
const EVENT_DELETED = "deleted"
View Source
const EVENT_INSPECT = "inspect"
View Source
const EVENT_RECREATE = "recreate"
View Source
const EVENT_REFRESH = "refresh"
View Source
const EVENT_RESTART = "restart"
View Source
const EVENT_STOP = "stop"
View Source
const EVENT_SYNC = "sync"
Variables ¶
This section is empty.
Functions ¶
func DispatchGroup ¶ added in v0.1.30
Types ¶
type Event ¶
type Event struct {
Type string
Target string
Prefix string
Kind string
Group string
Name string
Data []byte
}
func NewKindEvent ¶ added in v0.1.30
func NewKindEvent(event string, definition idefinitions.IDefinition, data []byte) Event
func (Event) GetContainerId ¶ added in v0.1.30
func (Event) GetNetworkId ¶ added in v0.1.30
type EventGroup ¶ added in v0.1.30
type EventGroup struct {
Events []Event
}
Click to show internal directories.
Click to hide internal directories.