rest

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBindNameRequestHandlerFn

func NewBindNameRequestHandlerFn(clientCtx client.Context) http.HandlerFunc

NewBindNameRequestHandlerFn returns an HTTP handler for binding names to addresses.

func RegisterHandlers

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

RegisterHandlers registers the rest query and tx handlers

Types

type BindNameRequest

type BindNameRequest struct {
	BaseReq    rest.BaseReq `json:"base_req"`
	Name       string       `json:"name"`
	Address    string       `json:"address"`
	RootName   string       `json:"root"`
	Restricted bool         `json:"restricted"`
}

BindNameRequest type for binding names to addresses.

Jump to

Keyboard shortcuts

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