Documentation
¶
Index ¶
Constants ¶
View Source
const ( PriorityLow int = iota PriorityHigh PriorityCritical )
The priority levels for event bus messages.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
EventBus handles sending and receiving events across Amass.
func NewEventBus ¶
func NewEventBus() *EventBus
NewEventBus initializes and returns an EventBus object.
func (*EventBus) Stop ¶
func (eb *EventBus) Stop()
Stop prevents any additional requests from being sent.
func (*EventBus) Subscribe ¶
Subscribe registers callback to be executed for all requests on the channel.
func (*EventBus) Unsubscribe ¶
Unsubscribe deregisters the callback from the channel.
Click to show internal directories.
Click to hide internal directories.