rest

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, storeName string)

RegisterRoutes - Central function to define routes that get registered by the main application.

Types

type CertifyModelRequest

type CertifyModelRequest struct {
	BaseReq           restTypes.BaseReq `json:"base_req"`
	CertificationDate time.Time         `json:"certification_date"` // rfc3339 encoded date
	Reason            string            `json:"reason,omitempty"`
}

type RevokeModelRequest

type RevokeModelRequest struct {
	BaseReq        restTypes.BaseReq `json:"base_req"`
	RevocationDate time.Time         `json:"revocation_date"` // rfc3339 encoded date
	Reason         string            `json:"reason,omitempty"`
}

Jump to

Keyboard shortcuts

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