Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventListener ¶
type EventListener struct {
// contains filtered or unexported fields
}
EventListener receives events from an EventWaiter.
func (*EventListener) Close ¶
func (l *EventListener) Close()
type EventWaiter ¶
type EventWaiter struct {
// contains filtered or unexported fields
}
EventWaiter waits for certain events to match a criteria.
func (*EventWaiter) Listen ¶
func (w *EventWaiter) Listen(ctx context.Context, match func(eh.Event) bool) (*EventListener, error)
Listen waits unil the match function returns true for an event, or the context deadline expires. The match function can be used to filter or otherwise select interesting events by analysing the event data.
Click to show internal directories.
Click to hide internal directories.