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

     1  // Package debugv1 defines a gRPC beacon service implementation,
     2  // following the official API standards https://ethereum.github.io/eth2.0-APIs/#/.
     3  // This package includes the beacon and config endpoints.
     4  package debug
     5  
     6  import (
     7  	"github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
     8  	"github.com/prysmaticlabs/prysm/beacon-chain/db"
     9  	"github.com/prysmaticlabs/prysm/beacon-chain/rpc/statefetcher"
    10  )
    11  
    12  // Server defines a server implementation of the gRPC Beacon Chain service,
    13  // providing RPC endpoints to access data relevant to the Ethereum Beacon Chain.
    14  type Server struct {
    15  	BeaconDB     db.ReadOnlyDatabase
    16  	HeadFetcher  blockchain.HeadFetcher
    17  	StateFetcher statefetcher.Fetcher
    18  }