Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventHead = "head" EventBlock = "block" EventAttestation = "attestation" EventVoluntaryExit = "voluntary_exit" EventBlsToExecutionChange = "bls_to_execution_change" EventProposerSlashing = "proposer_slashing" EventAttesterSlashing = "attester_slashing" EventFinalizedCheckpoint = "finalized_checkpoint" EventChainReorg = "chain_reorg" EventContributionAndProof = "contribution_and_proof" EventLightClientFinalityUpdate = "light_client_finality_update" EventLightClientOptimisticUpdate = "light_client_optimistic_update" EventPayloadAttributes = "payload_attributes" EventBlobSidecar = "blob_sidecar" 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.