api

package
v5.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebUrlPrefix        = "/v2/validator/"
	WebApiUrlPrefix     = "/api/v2/validator/"
	KeymanagerApiPrefix = "/eth/v1"
	SystemLogsPrefix    = "health/logs"
	AuthTokenFileName   = "auth-token"
)
View Source
const (
	VersionHeader                 = "Eth-Consensus-Version"
	ExecutionPayloadBlindedHeader = "Eth-Execution-Payload-Blinded"
	ExecutionPayloadValueHeader   = "Eth-Execution-Payload-Value"
	ConsensusBlockValueHeader     = "Eth-Consensus-Block-Value"
	JsonMediaType                 = "application/json"
	OctetStreamMediaType          = "application/octet-stream"
	EventStreamMediaType          = "text/event-stream"
	KeepAlive                     = "keep-alive"
)

Variables

This section is empty.

Functions

func GenerateRandomHexString added in v5.0.4

func GenerateRandomHexString() (string, error)

GenerateRandomHexString generates a random hex string that follows the standards for jwt token used for beacon node -> execution client used for web client -> validator client

func SetSSEHeaders added in v5.1.1

func SetSSEHeaders(w http.ResponseWriter)

SetSSEHeaders sets the headers needed for a server-sent event response.

func ValidateAuthToken added in v5.0.4

func ValidateAuthToken(token string) error

ValidateAuthToken validating auth token for web

Types

This section is empty.

Directories

Path Synopsis
beacon
Package beacon provides a client for interacting with the standard Eth Beacon Node API.
Package beacon provides a client for interacting with the standard Eth Beacon Node API.
Package pagination contains useful pagination-related helpers.
Package pagination contains useful pagination-related helpers.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL