rest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: MIT 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 registers tombstone-related REST handlers to a router

func SetRecordHandlerFn

func SetRecordHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

SetRecordHandlerFn set record

Types

type SetRecordReq

type SetRecordReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	Name    string       `json:"name"`
	Born    time.Time    `json:"born"`
	Died    time.Time    `json:"died"`
	Memo    string       `json:"memo"`
	Tags    []string     `json:"tags"`

	Recorder sdk.AccAddress `json:"recorder"`
}

SetRecordReq TX body

Jump to

Keyboard shortcuts

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