rest

package
v0.0.0-...-7183b0c Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodGet  = "GET"
	MethodPUT  = "PUT"
	MethodPOST = "POST"
)

Variables

This section is empty.

Functions

func NewFeedDataRequestHandler

func NewFeedDataRequestHandler(clientCtx client.Context) http.HandlerFunc

func RegisterRoutes

func RegisterRoutes(clientCtx client.Context, rtr *mux.Router)

RegisterRoutes registers blog-related REST handlers to a router

Types

type FeedDataRequest

type FeedDataRequest struct {
	BaseReq       rest.BaseReq `json:"baseReq"`
	FeedId        string       `json:"feedId"`
	FeedData      [][]byte     `json:"feedData"`
	Signatures    [][]byte     `json:"signature"`
	CosmosPubKeys [][]byte     `json:"cosmosPubKeys"`
}

Jump to

Keyboard shortcuts

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