mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-28 14:17:17 +00:00
22 lines
768 B
Go
22 lines
768 B
Go
|
// Package eventsv1 defines a gRPC events service implementation,
|
||
|
// following the official API standards https://ethereum.github.io/eth2.0-APIs/#/.
|
||
|
// This package includes the events endpoint.
|
||
|
package eventsv1
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
blockfeed "github.com/prysmaticlabs/prysm/beacon-chain/core/feed/block"
|
||
|
opfeed "github.com/prysmaticlabs/prysm/beacon-chain/core/feed/operation"
|
||
|
statefeed "github.com/prysmaticlabs/prysm/beacon-chain/core/feed/state"
|
||
|
)
|
||
|
|
||
|
// Server defines a server implementation of the gRPC events service,
|
||
|
// providing RPC endpoints to subscribe to events from the beacon node.
|
||
|
type Server struct {
|
||
|
Ctx context.Context
|
||
|
StateNotifier statefeed.Notifier
|
||
|
BlockNotifier blockfeed.Notifier
|
||
|
OperationNotifier opfeed.Notifier
|
||
|
}
|