package
1.32.0-rc2
Repository: https://github.com/filecoin-project/lotus.git
Documentation: pkg.go.dev

# Functions

Handler returns a gateway http.Handler, to be mounted as-is on the server.
No description provided by the author
NewNode creates a new gateway node.
NewRateLimitHandler creates a new RateLimitHandler that wraps the provided handler and limits the number of API calls per minute within a single WebSocket connection (where API calls are weighted by their relative expense), and the number of connections per minute from a single host.
WithEthMaxFiltersPerConn sets the maximum number of Ethereum filters and subscriptions that can be maintained per websocket connection.
WithEthSubHandler sets the Ethereum subscription handler for the gateway node.
WithJsonrpcServerOptions sets the JSON-RPC server options.
WithMaxLookbackDuration sets the maximum lookback duration (time) for state queries.
WithMaxMessageLookbackEpochs sets the maximum lookback (epochs) for state queries.
WithPerConnectionAPIRateLimit sets the per connection API rate limit.
WithPerHostConnectionsPerMinute sets the per host connections per minute limit.
WithRateLimit sets the maximum number of requests per second globally that will be allowed before the gateway starts to rate limit requests.
WithRateLimitTimeout sets the timeout for rate limiting requests such that when rate limiting is being applied, if the timeout is reached the request will be allowed.

# Constants

Default maximum number of ETH filters and subscriptions per websocket connection.
Default duration that a gateway request can look back in chain history.
Default number of epochs that a gateway message lookup can look back in chain history.
Default timeout for rate limiting requests; where a request would take longer to wait than this value, it will be retjected.
Number of tokens consumed for the most expensive types of operations.

# Variables

No description provided by the author
this seems to be expensive; todo: figure out what is a good number that works with everything.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

ShutdownHandler is an http.Handler that can be gracefully shutdown.
TargetAPI defines the API methods that the Node depends on (to make it easy to mock for tests).

# Type aliases

HandlerOption is a functional option for configuring the Handler.
No description provided by the author