apimiddleware

package
v3.2.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteFeeRecipientByPubkeyRequestJson added in v3.2.1

type DeleteFeeRecipientByPubkeyRequestJson struct {
	Pubkey string `json:"pubkey" hex:"true"`
}

type DeleteGasLimitRequestJson added in v3.1.2

type DeleteGasLimitRequestJson struct {
	Pubkey string `json:"pubkey" hex:"true"`
}

type DeleteKeystoresRequestJson added in v3.1.2

type DeleteKeystoresRequestJson struct {
	PublicKeys []string `json:"pubkeys" hex:"true"`
}

type DeleteKeystoresResponseJson added in v3.1.2

type DeleteKeystoresResponseJson struct {
	Statuses           []*StatusJson `json:"data"`
	SlashingProtection string        `json:"slashing_protection"`
}

type DeleteRemoteKeysRequestJson added in v3.1.2

type DeleteRemoteKeysRequestJson struct {
	PublicKeys []string `json:"pubkeys" hex:"true"`
}

type DeleteRemoteKeysResponseJson added in v3.1.2

type DeleteRemoteKeysResponseJson struct {
	Statuses []*StatusJson `json:"data"`
}

type FeeRecipientJson added in v3.1.2

type FeeRecipientJson struct {
	Pubkey     string `json:"pubkey" hex:"true"`
	Ethaddress string `json:"ethaddress" address:"true"`
}

type GasLimitJson added in v3.1.2

type GasLimitJson struct {
	Pubkey   string `json:"pubkey" hex:"true"`
	GasLimit string `json:"gas_limit"`
}

type GetFeeRecipientByPubkeyResponseJson added in v3.1.2

type GetFeeRecipientByPubkeyResponseJson struct {
	Data *FeeRecipientJson `json:"data"`
}

type GetGasLimitResponseJson added in v3.1.2

type GetGasLimitResponseJson struct {
	Data *GasLimitJson `json:"data"`
}

type ImportKeystoresRequestJson added in v3.1.2

type ImportKeystoresRequestJson struct {
	Keystores          []string `json:"keystores"`
	Passwords          []string `json:"passwords"`
	SlashingProtection string   `json:"slashing_protection"`
}

type ImportKeystoresResponseJson added in v3.1.2

type ImportKeystoresResponseJson struct {
	Statuses []*StatusJson `json:"data"`
}

type ImportRemoteKeysRequestJson added in v3.1.2

type ImportRemoteKeysRequestJson struct {
	Keystores []*RemoteKeysJson `json:"remote_keys"`
}

type ImportRemoteKeysResponseJson added in v3.1.2

type ImportRemoteKeysResponseJson struct {
	Statuses []*StatusJson `json:"data"`
}

type KeystoreJson added in v3.1.2

type KeystoreJson struct {
	ValidatingPubkey string `json:"validating_pubkey" hex:"true"`
	DerivationPath   string `json:"derivation_path"`
}

type ListKeystoresResponseJson added in v3.1.2

type ListKeystoresResponseJson struct {
	Keystores []*KeystoreJson `json:"data"`
}

type ListRemoteKeysResponseJson added in v3.1.2

type ListRemoteKeysResponseJson struct {
	Keystores []*RemoteKeysListJson `json:"data"`
}

type RemoteKeysJson added in v3.1.2

type RemoteKeysJson struct {
	Pubkey   string `json:"pubkey" hex:"true"`
	Url      string `json:"url"`
	Readonly bool   `json:"readonly"`
}

type RemoteKeysListJson added in v3.1.2

type RemoteKeysListJson struct {
	Pubkey   string `json:"pubkey" hex:"true"`
	Url      string `json:"url"`
	Readonly bool   `json:"readonly"`
}

type SetFeeRecipientByPubkeyRequestJson added in v3.1.2

type SetFeeRecipientByPubkeyRequestJson struct {
	Ethaddress string `json:"ethaddress" hex:"true"`
}

type SetGasLimitRequestJson added in v3.1.2

type SetGasLimitRequestJson struct {
	GasLimit string `json:"gas_limit"`
}

type StatusJson added in v3.1.2

type StatusJson struct {
	Status  string `json:"status" enum:"true"`
	Message string `json:"message"`
}

type ValidatorEndpointFactory

type ValidatorEndpointFactory struct {
}

ValidatorEndpointFactory creates endpoints used for running validator API calls through the API Middleware.

func (*ValidatorEndpointFactory) Create

Create returns a new endpoint for the provided API path.

func (*ValidatorEndpointFactory) IsNil

func (f *ValidatorEndpointFactory) IsNil() bool

func (*ValidatorEndpointFactory) Paths

func (*ValidatorEndpointFactory) Paths() []string

Paths is a collection of all valid validator API paths.

Jump to

Keyboard shortcuts

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