package
0.0.0-20230918182710-a4e836c670f6
Repository: https://github.com/bloxroute-labs/mev-relay.git
Documentation: pkg.go.dev
# Functions
CheckKnownValidator is a middleware function that checks the endpoint and service config to ensure whoever is requesting the endpoint is a known validator.
ComputeDomain computes the signing domain.
No description provided by the author
GetGenesis returns the genesis info - https://ethereum.github.io/beacon-APIs/#/Beacon/getGenesis.
InitLogger initializes a new bloxroute logger using logrus.
LogRequestID adds logging to the requests on the id parameter for the relay.
No description provided by the author
NewBoostService created a new BoostService.
NewLog builds new log configuration from the CLI context.
NewPerformanceStats creates the PerformanceStats.
NewRelayEntry creates a new instance based on an input string relayURL can be IP@PORT, PUBKEY@IP:PORT, https://IP, etc.
ReadAuthMetadata reads auth info from the RPC connection context.
SendHTTPRequest - prepare and send HTTP request, marshaling the payload if any, and decoding the response if dst is set.
SendJSONRPCRequest sends the request to URL and returns the general JsonRpcResponse, or an error (note: not the JSONRPCError).
No description provided by the author
# Constants
No description provided by the author
DateFormat is an example to date time string format.
RelayType enumeration.
RelayType enumeration.
RelayType enumeration.
RelayType enumeration.
RPCRequestType enumeration.
RPCRequestType enumeration.
# Variables
AuthToken used for authenticated endpoints.
No description provided by the author
ErrMissingRelayPubkey is returned if a new RelayEntry URL has no public key.
No description provided by the author
No description provided by the author
Version is used to get the version of the backend.
# Structs
No description provided by the author
No description provided by the author
BidTraceJSON is a struct used for the relay api.
BidTraceWithTimestampJSON is a struct used for the relay api.
BoostService TODO.
BoostServiceOpts provides all available options for use with NewBoostService.
DeleteBidPayload models the request payload used to delete bids from the datastore.
EndpointStats has statistics on an endpoint.
No description provided by the author
HeaderResponse models the header response.
No description provided by the author
PerformanceStats has statistics in an interval on selected endpoints.
PerformanceStatsRecord has the bloxroute stats record.
No description provided by the author
PutRelayPayload models the payload for the PUT request.
RelayEntry represents a relay that mev-boost connects to.
No description provided by the author
Validator models the validator data.
ValidatorData represents the data returned from beacon's validator endpoint.
ValidatorsResponse models the response from the beacon node when fetching validators.
# Interfaces
No description provided by the author
# Type aliases
RelayType represents the type of relay.
RPCRequestType represents the JSON-RPC methods that are callable.
UserAgent is a custom string type to avoid confusing url + userAgent parameters in SendHTTPRequest.