apiproxy

package
v0.33.16 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowAccessAPIForwarder

type FlowAccessAPIForwarder struct {
	*forwarder.Forwarder
}

FlowAccessAPIForwarder forwards all requests to a set of upstream access nodes or observers

func NewFlowAccessAPIForwarder

func NewFlowAccessAPIForwarder(identities flow.IdentityList, connectionFactory connection.ConnectionFactory) (*FlowAccessAPIForwarder, error)

func (*FlowAccessAPIForwarder) ExecuteScriptAtBlockHeight

func (*FlowAccessAPIForwarder) ExecuteScriptAtBlockID

func (*FlowAccessAPIForwarder) ExecuteScriptAtLatestBlock

func (*FlowAccessAPIForwarder) GetAccount

func (*FlowAccessAPIForwarder) GetAccountAtBlockHeight

func (*FlowAccessAPIForwarder) GetAccountAtLatestBlock

func (*FlowAccessAPIForwarder) GetBlockByHeight

func (*FlowAccessAPIForwarder) GetBlockByID

func (*FlowAccessAPIForwarder) GetBlockHeaderByHeight

func (*FlowAccessAPIForwarder) GetBlockHeaderByID

func (*FlowAccessAPIForwarder) GetCollectionByID

func (*FlowAccessAPIForwarder) GetEventsForBlockIDs

func (*FlowAccessAPIForwarder) GetEventsForHeightRange

func (*FlowAccessAPIForwarder) GetExecutionResultByID added in v0.32.0

func (*FlowAccessAPIForwarder) GetLatestBlock

func (*FlowAccessAPIForwarder) GetLatestBlockHeader

func (*FlowAccessAPIForwarder) GetLatestProtocolStateSnapshot

func (*FlowAccessAPIForwarder) GetNetworkParameters

func (*FlowAccessAPIForwarder) GetNodeVersionInfo added in v0.31.0

func (*FlowAccessAPIForwarder) GetSystemTransaction added in v0.33.1

func (*FlowAccessAPIForwarder) GetSystemTransactionResult added in v0.33.1

func (*FlowAccessAPIForwarder) GetTransaction

func (*FlowAccessAPIForwarder) GetTransactionResult

func (*FlowAccessAPIForwarder) GetTransactionResultByIndex

func (*FlowAccessAPIForwarder) GetTransactionResultsByBlockID

func (*FlowAccessAPIForwarder) GetTransactionsByBlockID

func (*FlowAccessAPIForwarder) Ping

Ping pings the service. It is special in the sense that it responds successful, only if all underlying services are ready.

func (*FlowAccessAPIForwarder) SendTransaction

type FlowAccessAPIRouter

type FlowAccessAPIRouter struct {
	Logger   zerolog.Logger
	Metrics  *metrics.ObserverCollector
	Upstream *FlowAccessAPIForwarder
	Observer *protocol.Handler
}

FlowAccessAPIRouter is a structure that represents the routing proxy algorithm. It splits requests between a local and a remote API service.

func (*FlowAccessAPIRouter) ExecuteScriptAtBlockHeight

func (*FlowAccessAPIRouter) ExecuteScriptAtBlockID

func (*FlowAccessAPIRouter) ExecuteScriptAtLatestBlock

func (*FlowAccessAPIRouter) GetAccount

func (*FlowAccessAPIRouter) GetAccountAtBlockHeight

func (*FlowAccessAPIRouter) GetAccountAtLatestBlock

func (*FlowAccessAPIRouter) GetBlockByHeight

func (*FlowAccessAPIRouter) GetBlockByID

func (*FlowAccessAPIRouter) GetBlockHeaderByHeight

func (*FlowAccessAPIRouter) GetBlockHeaderByID

func (*FlowAccessAPIRouter) GetCollectionByID

func (*FlowAccessAPIRouter) GetEventsForBlockIDs

func (*FlowAccessAPIRouter) GetEventsForHeightRange

func (*FlowAccessAPIRouter) GetExecutionResultByID added in v0.32.0

func (*FlowAccessAPIRouter) GetLatestBlock

func (*FlowAccessAPIRouter) GetLatestBlockHeader

func (*FlowAccessAPIRouter) GetLatestProtocolStateSnapshot

func (*FlowAccessAPIRouter) GetNetworkParameters

func (*FlowAccessAPIRouter) GetNodeVersionInfo added in v0.31.0

func (*FlowAccessAPIRouter) GetProtocolStateSnapshotByBlockID added in v0.33.1

func (*FlowAccessAPIRouter) GetProtocolStateSnapshotByHeight added in v0.33.1

func (*FlowAccessAPIRouter) GetSystemTransaction added in v0.33.1

func (*FlowAccessAPIRouter) GetSystemTransactionResult added in v0.33.1

func (*FlowAccessAPIRouter) GetTransaction

func (*FlowAccessAPIRouter) GetTransactionResult

func (*FlowAccessAPIRouter) GetTransactionResultByIndex

func (*FlowAccessAPIRouter) GetTransactionResultsByBlockID

func (*FlowAccessAPIRouter) GetTransactionsByBlockID

func (*FlowAccessAPIRouter) Ping

Ping pings the service. It is special in the sense that it responds successful, only if all underlying services are ready.

func (*FlowAccessAPIRouter) SendTransaction

Jump to

Keyboard shortcuts

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