rest

package
Version: v0.41.10 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 9 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(clientCtx client.Context, rtr *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