Documentation ¶
Overview ¶
Package server Algod REST API.
Index ¶
Constants ¶
View Source
const ( // TokenHeader is the header where we put the token. TokenHeader = "X-Algo-API-Token" // MaxRequestBodyBytes is the maximum request body size that we allow in our APIs. MaxRequestBodyBytes = "10MB" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APINode ¶
type APINode struct{ *node.AlgorandFullNode }
APINode wraps the AlgorandFullNode to provide v2.NodeInterface.
func (APINode) LedgerForAPI ¶
func (n APINode) LedgerForAPI() v2.LedgerForAPI
LedgerForAPI implements the v2.Handlers interface
type APINodeInterface ¶
type APINodeInterface interface { lib.NodeInterface v2.NodeInterface }
APINodeInterface describes all the node methods required by common and v2 APIs, and the server/router
type FollowerNode ¶
type FollowerNode struct{ *node.AlgorandFollowerNode }
FollowerNode wraps the AlgorandFollowerNode to provide v2.NodeInterface.
func (FollowerNode) LedgerForAPI ¶
func (n FollowerNode) LedgerForAPI() v2.LedgerForAPI
LedgerForAPI implements the v2.Handlers interface
Directories ¶
Path | Synopsis |
---|---|
v1
|
|
generated/data
Package data provides primitives to interact with the openapi HTTP API.
|
Package data provides primitives to interact with the openapi HTTP API. |
generated/experimental
Package experimental provides primitives to interact with the openapi HTTP API.
|
Package experimental provides primitives to interact with the openapi HTTP API. |
generated/model
Package model provides primitives to interact with the openapi HTTP API.
|
Package model provides primitives to interact with the openapi HTTP API. |
generated/nonparticipating/private
Package private provides primitives to interact with the openapi HTTP API.
|
Package private provides primitives to interact with the openapi HTTP API. |
generated/nonparticipating/public
Package public provides primitives to interact with the openapi HTTP API.
|
Package public provides primitives to interact with the openapi HTTP API. |
generated/participating/private
Package private provides primitives to interact with the openapi HTTP API.
|
Package private provides primitives to interact with the openapi HTTP API. |
generated/participating/public
Package public provides primitives to interact with the openapi HTTP API.
|
Package public provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.