cosmos-sdk: github.com/cosmos/cosmos-sdk/x/evidence/client/rest Index | Files

package rest

import "github.com/cosmos/cosmos-sdk/x/evidence/client/rest"

Index

Package Files

query.go rest.go tx.go

Constants

const (
    RestParamEvidenceHash = "evidence-hash"

    MethodGet = "GET"
)

REST query and parameter values

func RegisterRoutes Uses

func RegisterRoutes(clientCtx client.Context, r *mux.Router, handlers []EvidenceRESTHandler)

RegisterRoutes registers all Evidence submission handlers for the evidence module's REST service handler.

type EvidenceRESTHandler Uses

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.

Package rest imports 8 packages (graph) and is imported by 2 packages. Updated 2020-07-26. Refresh now. Tools for package owners.