rest

package
v0.1.9 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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddAttributeRequestHandlerFn

func NewAddAttributeRequestHandlerFn(clientCtx client.Context) http.HandlerFunc

The HTTP handler for setting account attributes.

func NewDeleteAttributeHandlerFn

func NewDeleteAttributeHandlerFn(clientCtx client.Context) http.HandlerFunc

The HTTP handler for removing account attributes.

func RegisterHandlers

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

RegisterHandlers registers the rest query and tx handlers

Types

type AddAccountAttributeRequest

type AddAccountAttributeRequest struct {
	BaseReq rest.BaseReq `json:"base_req"`
	Name    string       `json:"name"`
	Value   string       `json:"value"`
	Type    string       `json:"type"`
	Account string       `json:"account"`
}

Request type for setting account attributes.

type DeleteAccountAttributeRequest

type DeleteAccountAttributeRequest struct {
	BaseReq rest.BaseReq `json:"base_req"`
	Name    string       `json:"name"`
	Account string       `json:"account"`
}

Request type for removing account attributes.

Jump to

Keyboard shortcuts

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