github.com/prysmaticlabs/prysm@v1.4.4/beacon-chain/rpc/eth/v1/events/server.go (about)

     1  // Package eventsv1 defines a gRPC events service implementation,
     2  // following the official API standards https://ethereum.github.io/eth2.0-APIs/#/.
     3  // This package includes the events endpoint.
     4  package events
     5  
     6  import (
     7  	"context"
     8  
     9  	blockfeed "github.com/prysmaticlabs/prysm/beacon-chain/core/feed/block"
    10  	opfeed "github.com/prysmaticlabs/prysm/beacon-chain/core/feed/operation"
    11  	statefeed "github.com/prysmaticlabs/prysm/beacon-chain/core/feed/state"
    12  )
    13  
    14  // Server defines a server implementation of the gRPC events service,
    15  // providing RPC endpoints to subscribe to events from the beacon node.
    16  type Server struct {
    17  	Ctx               context.Context
    18  	StateNotifier     statefeed.Notifier
    19  	BlockNotifier     blockfeed.Notifier
    20  	OperationNotifier opfeed.Notifier
    21  }