rest

package
v0.0.0-...-fbaf713 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 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