Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventHead = "head" EventError = "error" EventConnectionError = "connection_error" )
Variables ¶
View Source
var DefaultEventTopics = []string{EventHead}
Functions ¶
This section is empty.
Types ¶
type EventStream ¶
type EventStream struct {
// contains filtered or unexported fields
}
EventStream is responsible for subscribing to the Beacon API events endpoint and dispatching received events to subscribers.
func NewEventStream ¶
func (*EventStream) Subscribe ¶
func (h *EventStream) Subscribe(eventsChannel chan<- *Event)
type EventStreamClient ¶
type EventStreamClient interface {
Subscribe(eventsChannel chan<- *Event)
}
Click to show internal directories.
Click to hide internal directories.