apiproxy

package
v0.29.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: AGPL-3.0 Imports: 16 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 {
	// contains filtered or unexported fields
}

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

func NewFlowAccessAPIForwarder

func NewFlowAccessAPIForwarder(identities flow.IdentityList, timeout time.Duration) (*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) GetLatestBlock

func (*FlowAccessAPIForwarder) GetLatestBlockHeader

func (*FlowAccessAPIForwarder) GetLatestProtocolStateSnapshot

func (*FlowAccessAPIForwarder) GetNetworkParameters

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) GetLatestBlock

func (*FlowAccessAPIRouter) GetLatestBlockHeader

func (*FlowAccessAPIRouter) GetLatestProtocolStateSnapshot

func (*FlowAccessAPIRouter) GetNetworkParameters

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