Documentation ¶
Index ¶
- Variables
- func SendHTTPRequest(ctx context.Context, client http.Client, method, url string, payload, dst any) (code int, err error)
- func SendHTTPRequestWithRetries(ctx context.Context, client http.Client, method, url string, payload, dst any, ...) (code int, err error)
- type ExternalValidatorProxyService
- func (p *ExternalValidatorProxyService) CliCommand() *cli.Command
- func (p *ExternalValidatorProxyService) Configure(moduleFlags common.ModuleFlags) (err error)
- func (p *ExternalValidatorProxyService) ConnectCore(coreClient *coreCommon.Client, pingId string) error
- func (p *ExternalValidatorProxyService) GetHeader(slot uint64, parentHash, pubkey string) (res []spec.VersionedSignedBuilderBid, err error)
- func (p *ExternalValidatorProxyService) GetPayload(...) (...)
- func (p *ExternalValidatorProxyService) Name() string
- func (p *ExternalValidatorProxyService) RegisterValidator(payload []apiv1.SignedValidatorRegistration) error
- func (p *ExternalValidatorProxyService) Start() error
- func (p *ExternalValidatorProxyService) Status() error
- func (p *ExternalValidatorProxyService) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHTTPErrorResponse = errors.New("HTTP error response") ErrMaxRetriesExceeded = errors.New("max retries exceeded") )
Functions ¶
func SendHTTPRequest ¶
func SendHTTPRequest(ctx context.Context, client http.Client, method, url string, payload, dst any) (code int, err error)
SendHTTPRequest - prepare and send HTTP request, marshaling the payload if any, and decoding the response if dst is set
func SendHTTPRequestWithRetries ¶
func SendHTTPRequestWithRetries(ctx context.Context, client http.Client, method, url string, payload, dst any, maxRetries int, log *logrus.Entry) (code int, err error)
SendHTTPRequestWithRetries - prepare and send HTTP request, retrying the request if within the client timeout
Types ¶
type ExternalValidatorProxyService ¶
type ExternalValidatorProxyService struct {
// contains filtered or unexported fields
}
func NewExternalValidatorProxyService ¶
func NewExternalValidatorProxyService() *ExternalValidatorProxyService
func (*ExternalValidatorProxyService) CliCommand ¶ added in v1.0.0
func (p *ExternalValidatorProxyService) CliCommand() *cli.Command
func (*ExternalValidatorProxyService) Configure ¶
func (p *ExternalValidatorProxyService) Configure(moduleFlags common.ModuleFlags) (err error)
func (*ExternalValidatorProxyService) ConnectCore ¶
func (p *ExternalValidatorProxyService) ConnectCore(coreClient *coreCommon.Client, pingId string) error
func (*ExternalValidatorProxyService) GetHeader ¶
func (p *ExternalValidatorProxyService) GetHeader(slot uint64, parentHash, pubkey string) (res []spec.VersionedSignedBuilderBid, err error)
func (*ExternalValidatorProxyService) GetPayload ¶
func (p *ExternalValidatorProxyService) GetPayload(VersionedSignedBlindedBeaconBlock *commonTypes.VersionedSignedBlindedBeaconBlock) (versionedExecutionPayload []commonTypes.VersionedExecutionPayloadV2WithVersionName, err error)
func (*ExternalValidatorProxyService) Name ¶
func (p *ExternalValidatorProxyService) Name() string
func (*ExternalValidatorProxyService) RegisterValidator ¶
func (p *ExternalValidatorProxyService) RegisterValidator(payload []apiv1.SignedValidatorRegistration) error
func (*ExternalValidatorProxyService) Start ¶
func (p *ExternalValidatorProxyService) Start() error
func (*ExternalValidatorProxyService) Status ¶
func (p *ExternalValidatorProxyService) Status() error
func (*ExternalValidatorProxyService) Stop ¶
func (p *ExternalValidatorProxyService) Stop() error
Click to show internal directories.
Click to hide internal directories.