Documentation ¶
Index ¶
Constants ¶
View Source
const ( // the bind address on which the REST API listens on CfgRestAPIBindAddress = "restAPI.bindAddress" // the allowed HTTP REST routes which can be called from non whitelisted addresses CfgRestAPIPermittedRoutes = "restAPI.permittedRoutes" // the whitelist of addresses which are allowed to access the REST API CfgRestAPIWhitelistedAddresses = "restAPI.whitelistedAddresses" // whether to allow the health check route anyways CfgRestAPIExcludeHealthCheckFromAuth = "restAPI.excludeHealthCheckFromAuth" // whether to use JWT auth for the REST API CfgRestAPIAuthEnabled = "restAPI.jwtAuth.enabled" // salt used inside the JWT tokens for the REST API. Change this to a different value to invalidate JWT tokens not matching this new value CfgRestAPIAuthSalt = "restAPI.jwtAuth.salt" // whether the node does PoW if messages are received via API CfgRestAPIPoWEnabled = "restAPI.powEnabled" // the amount of workers used for calculating PoW when issuing messages via API CfgRestAPIPoWWorkerCount = "restAPI.powWorkerCount" // the maximum number of characters that the body of an API call may contain CfgRestAPILimitsMaxBodyLength = "restAPI.limits.bodyLength" // the maximum number of results that may be returned by an endpoint CfgRestAPILimitsMaxResults = "restAPI.limits.maxResults" )
Variables ¶
View Source
var (
Plugin *node.Plugin
)
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.