Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAndPublish ¶
BuildAndPublish builds the event according to the metadata and publish the event The process is done in a separated goroutine
Types ¶
type Event ¶
type Event struct { Topic string Data interface{} }
Event to publish
func (*Event) WithTopicEvent ¶
func (e *Event) WithTopicEvent(topicEvent TopicEvent) *Event
WithTopicEvent - builder method
type HookMetaData ¶
type HookMetaData struct { ProjectID int64 PolicyID int64 EventType string Target *policy_model.EventTarget Payload *model.Payload }
HookMetaData defines hook notification related event data
func (*HookMetaData) Resolve ¶
func (h *HookMetaData) Resolve(evt *Event) error
Resolve hook metadata into hook event
type TopicEvent ¶
type TopicEvent interface {
Topic() string
}
TopicEvent - Events that contains topic information
Click to show internal directories.
Click to hide internal directories.