rest

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL