Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetListAuthorizedEventEvents ¶
func GetListAuthorizedEventEvents() (authorizedEvents string)
func HasIgnoreField ¶
HasIgnoreField Filter out the event has ignored app filed
func IsAuthorizedEvent ¶
Types ¶
type EventFilter ¶
EventFilter Given an Event Filter out unwanted event
func NotInCertainOrgs ¶
func NotInCertainOrgs(orgFilters string) EventFilter
NotInCertainOrgs Filter out events not in certain orgs
type EventRouting ¶
type EventRouting interface { GetSelectedEvents() map[string]bool RouteEvent(msg *events.Envelope) SetupEventRouting(wantedEvents string) error SetExtraFields(extraEventsString string) }
func NewEventRouting ¶
func NewEventRouting(caching caching.Caching, logging logging.Logging, stats *stats.Stats, filters []EventFilter) EventRouting
type EventRoutingDefault ¶
type EventRoutingDefault struct { CachingClient caching.Caching Stats *stats.Stats ExtraFields map[string]string // contains filtered or unexported fields }
func (*EventRoutingDefault) GetSelectedEvents ¶
func (e *EventRoutingDefault) GetSelectedEvents() map[string]bool
func (*EventRoutingDefault) RouteEvent ¶
func (e *EventRoutingDefault) RouteEvent(msg *events.Envelope)
func (*EventRoutingDefault) SetExtraFields ¶
func (e *EventRoutingDefault) SetExtraFields(extraEventsString string)
func (*EventRoutingDefault) SetupEventRouting ¶
func (e *EventRoutingDefault) SetupEventRouting(wantedEvents string) error
Click to show internal directories.
Click to hide internal directories.