Documentation ¶
Overview ¶
Code generated by bundle_swagger_json.sh, along with swagger.json. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GenesisJSONText string
GenesisJSONText is initialized when the node starts.
View Source
var SwaggerSpecJSON string
SwaggerSpecJSON is autogenerated from swagger.json, and bundled in with a script on build.
Functions ¶
func ErrorResponse ¶
func ErrorResponse(w http.ResponseWriter, status int, internalErr error, publicErr string, logger logging.Logger)
ErrorResponse sets the specified status code (should != 200), and fills in the a human readable error.
Types ¶
type HandlerFunc ¶
type HandlerFunc func(ReqContext, echo.Context)
HandlerFunc defines a wrapper for http.HandlerFunc that includes a context
type ReqContext ¶
type ReqContext struct { Node *node.AlgorandFullNode Log logging.Logger Context echo.Context Shutdown <-chan struct{} }
ReqContext is passed to each of the handlers below via wrapCtx, allowing handlers to interact with the node
Click to show internal directories.
Click to hide internal directories.