apiproxy

package
v0.37.16 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalApiService    = "local"
	UpstreamApiService = "upstream"
)

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.IdentitySkeletonList, 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) GetAccountBalanceAtBlockHeight added in v0.36.1

func (*FlowAccessAPIForwarder) GetAccountBalanceAtLatestBlock added in v0.36.1

func (*FlowAccessAPIForwarder) GetAccountKeyAtBlockHeight added in v0.36.1

func (*FlowAccessAPIForwarder) GetAccountKeyAtLatestBlock added in v0.36.1

func (*FlowAccessAPIForwarder) GetAccountKeysAtBlockHeight added in v0.36.1

func (*FlowAccessAPIForwarder) GetAccountKeysAtLatestBlock added in v0.36.1

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) GetFullCollectionByID added in v0.33.26

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 {
	// 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 added in v0.33.30

func NewFlowAccessAPIRouter(params Params) *FlowAccessAPIRouter

NewFlowAccessAPIRouter creates FlowAccessAPIRouter instance

func (*FlowAccessAPIRouter) ExecuteScriptAtBlockHeight

func (*FlowAccessAPIRouter) ExecuteScriptAtBlockID

func (*FlowAccessAPIRouter) ExecuteScriptAtLatestBlock

func (*FlowAccessAPIRouter) GetAccount

func (*FlowAccessAPIRouter) GetAccountAtBlockHeight

func (*FlowAccessAPIRouter) GetAccountAtLatestBlock

func (*FlowAccessAPIRouter) GetAccountBalanceAtBlockHeight added in v0.36.1

func (*FlowAccessAPIRouter) GetAccountBalanceAtLatestBlock added in v0.36.1

func (*FlowAccessAPIRouter) GetAccountKeyAtBlockHeight added in v0.36.1

func (*FlowAccessAPIRouter) GetAccountKeyAtLatestBlock added in v0.36.1

func (*FlowAccessAPIRouter) GetAccountKeysAtBlockHeight added in v0.36.1

func (*FlowAccessAPIRouter) GetAccountKeysAtLatestBlock added in v0.36.1

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) GetFullCollectionByID added in v0.33.26

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) SendAndSubscribeTransactionStatuses added in v0.33.30

func (*FlowAccessAPIRouter) SendTransaction

func (*FlowAccessAPIRouter) SubscribeBlockDigestsFromLatest added in v0.33.30

func (*FlowAccessAPIRouter) SubscribeBlockDigestsFromStartBlockID added in v0.33.30

func (*FlowAccessAPIRouter) SubscribeBlockDigestsFromStartHeight added in v0.33.30

func (*FlowAccessAPIRouter) SubscribeBlockHeadersFromLatest added in v0.33.30

func (*FlowAccessAPIRouter) SubscribeBlockHeadersFromStartBlockID added in v0.33.30

func (*FlowAccessAPIRouter) SubscribeBlockHeadersFromStartHeight added in v0.33.30

func (*FlowAccessAPIRouter) SubscribeBlocksFromLatest added in v0.33.30

func (*FlowAccessAPIRouter) SubscribeBlocksFromStartBlockID added in v0.33.30

func (*FlowAccessAPIRouter) SubscribeBlocksFromStartHeight added in v0.33.30

type Params added in v0.33.30

type Params struct {
	Log      zerolog.Logger
	Metrics  *metrics.ObserverCollector
	Upstream *FlowAccessAPIForwarder
	Local    *accessflow.Handler
	UseIndex bool
}

Jump to

Keyboard shortcuts

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