Documentation ¶
Index ¶
Constants ¶
View Source
const ( Internal = iota BadRequest )
Variables ¶
This section is empty.
Functions ¶
func ErrorReasonToGRPC ¶
func ErrorReasonToGRPC(reason ErrorReason) codes.Code
func ErrorReasonToHTTP ¶
func ErrorReasonToHTTP(reason ErrorReason) int
Types ¶
type ErrorReason ¶
type ErrorReason uint8
type RpcError ¶
type RpcError struct { Err error Reason ErrorReason }
func ComputeValidatorPerformance ¶
func ComputeValidatorPerformance( ctx context.Context, req *ethpb.ValidatorPerformanceRequest, headFetcher blockchain.HeadFetcher, currSlot primitives.Slot, ) (*ethpb.ValidatorPerformanceResponse, *RpcError)
Click to show internal directories.
Click to hide internal directories.