Documentation
¶
Index ¶
Constants ¶
View Source
const ( ListenerKindWebsocket string = "websocket" ListenerKindSlack string = "slack" ListenerKindWebhook string = "webhook" )
Variables ¶
This section is empty.
Functions ¶
func CompareListeners ¶ added in v1.6.10
CompareListeners compares listeners by metadata
func ListenerName ¶ added in v1.5.17
ListenerName returns name of listener which can be used by event bus to identify listener
Types ¶
type Listener ¶
type Listener interface {
// Name uniquely identifies listener
Name() string
// Notify sends event to listener
Notify(event testkube.Event) testkube.EventResult
// Kind of listener
Kind() string
// Selector is used to filter events
Selector() string
// Event is used to filter events
Events() []testkube.EventType
// Metadata with additional information about listener
Metadata() map[string]string
}
type ListenerLoader ¶
Click to show internal directories.
Click to hide internal directories.