REST

package
v0.0.0-...-785a6da Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAccTxEndpoint

func CreateAccTxEndpoint(w http.ResponseWriter, req *http.Request)

func CreateAccTxEndpointWithPubKey

func CreateAccTxEndpointWithPubKey(w http.ResponseWriter, req *http.Request)

func CreateConfigTxEndpoint

func CreateConfigTxEndpoint(w http.ResponseWriter, req *http.Request)

func CreateFundsTxEndpoint

func CreateFundsTxEndpoint(w http.ResponseWriter, req *http.Request)

func GetAccountEndpoint

func GetAccountEndpoint(w http.ResponseWriter, req *http.Request)

func Init

func Init()

func SendAccTxEndpoint

func SendAccTxEndpoint(w http.ResponseWriter, req *http.Request)

func SendConfigTxEndpoint

func SendConfigTxEndpoint(w http.ResponseWriter, req *http.Request)

func SendFundsTxEndpoint

func SendFundsTxEndpoint(w http.ResponseWriter, req *http.Request)

func SendJsonResponse

func SendJsonResponse(w http.ResponseWriter, resp interface{})

Types

type Content

type Content struct {
	Name   string      `json:"name,omitempty"`
	Detail interface{} `json:"detail,omitempty"`
}

type JsonResponse

type JsonResponse struct {
	Code    int       `json:"code,omitempty"`
	Message string    `json:"message,omitempty"`
	Content []Content `json:"content,omitempty"`
}

Jump to

Keyboard shortcuts

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