Documentation ¶
Index ¶
Constants ¶
View Source
const ( RestParamEvidenceHash = "evidence-hash" MethodGet = "GET" )
REST query and parameter values
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, handlers []EvidenceRESTHandler)
RegisterRoutes registers all Evidence submission handlers for the evidence module's REST service handler.
Types ¶
type EvidenceRESTHandler ¶
type EvidenceRESTHandler struct { SubRoute string Handler func(http.ResponseWriter, *http.Request) }
EvidenceRESTHandler defines a REST service evidence handler implemented in another module. The sub-route is mounted on the evidence REST handler.
Click to show internal directories.
Click to hide internal directories.