apiproxy

package
v0.29.16-access-remove... Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: AGPL-3.0 Imports: 13 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 (*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) 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 {
	access.AccessAPIServer
	// contains filtered or unexported fields
}

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

func NewFlowAccessAPIRouter

func NewFlowAccessAPIRouter(accessNodeAddressAndPort flow.IdentityList, timeout time.Duration) (*FlowAccessAPIRouter, error)

NewFlowAccessAPIRouter creates a backend access API that forwards some requests to an upstream node. It is used by Observer services, Blockchain Data Service, etc. Make sure that this is just for observation and not a staked participant in the flow network. This means that observers see a copy of the data but there is no interaction to ensure integrity from the root block.

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

func (*FlowAccessAPIRouter) SetLocalAPI

func (h *FlowAccessAPIRouter) SetLocalAPI(local access.AccessAPIServer)

SetLocalAPI sets the local backend that responds to block related calls Everything else is forwarded to a selected upstream node

Jump to

Keyboard shortcuts

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