rest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileUploadRequestHandlerFn

func FileUploadRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

FileUploadRequestHandlerFn - http request handler to send coins to a address.

func RegisterRoutes

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

RegisterRoutes registers sds-related REST handlers to a router

Types

type FileUploadReq

type FileUploadReq struct {
	BaseReq  rest.BaseReq `json:"base_req" yaml:"base_req"`
	FileHash string       `json:"file_hash" yaml:"file_hash"`
	Uploader string       `json:"uploader" yaml:"uploader"`
}

FileUploadReq defines the properties of a send request's body.

Jump to

Keyboard shortcuts

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