apimiddleware

package
v3.0.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: GPL-3.0 Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconEndpointFactory

type BeaconEndpointFactory struct {
}

BeaconEndpointFactory creates endpoints used for running beacon chain API calls through the API Middleware.

func (*BeaconEndpointFactory) Create

Create returns a new endpoint for the provided API path.

func (*BeaconEndpointFactory) IsNil

func (f *BeaconEndpointFactory) IsNil() bool

func (*BeaconEndpointFactory) Paths

func (_ *BeaconEndpointFactory) Paths() []string

Paths is a collection of all valid beacon chain API paths.

type EpochParticipation

type EpochParticipation []string

EpochParticipation represents participation of validators in their duties.

func (*EpochParticipation) UnmarshalJSON

func (p *EpochParticipation) UnmarshalJSON(b []byte) error

type WeakSubjectivityResponse

type WeakSubjectivityResponse struct {
	Data *struct {
		Checkpoint *checkpointJson `json:"ws_checkpoint"`
		StateRoot  string          `json:"state_root" hex:"true"`
	} `json:"data"`
}

WeakSubjectivityResponse is used to marshal/unmarshal the response for the /eth/v1/beacon/weak_subjectivity endpoint.

Jump to

Keyboard shortcuts

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