rest

package
v0.15.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ParamsAddress = "address"
)

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx client.Context, r *mux.Router)

RegisterRoutes - Central function to define routes that get registered by the main application

Types

type AcceptDTagTransferReq added in v0.12.0

type AcceptDTagTransferReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
	NewDTag string       `json:"new_dtag"`
}

AcceptDTagTransferReq contains the data that should be sent to accept a DTag transfer request

type DeleteProfileReq

type DeleteProfileReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
}

DeleteProfileReq defines the properties of a profile deletion request body

type SaveProfileReq

type SaveProfileReq struct {
	BaseReq  rest.BaseReq   `json:"base_req"`
	DTag     string         `json:"dtag"`
	Moniker  string         `json:"moniker,omitempty"`
	Bio      string         `json:"bio,omitempty"`
	Pictures types.Pictures `json:"pictures,omitempty"`
}

SaveProfileReq defines the properties of a profile save request's body

type TransferDTagReq added in v0.12.0

type TransferDTagReq struct {
	BaseReq  rest.BaseReq `json:"base_req"`
	Receiver string       `json:"receiver"`
}

TransferDTagReq defines the properties of a DTag transferring request body

Jump to

Keyboard shortcuts

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