rest

package
v0.0.0-...-32383df Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PegRequestHandlerFn

func PegRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func RegisterRoutes

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

RegisterRoutes registers proximax-bridge-related REST handlers to a router

func RequestInvitationRequestHandlerFn

func RequestInvitationRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

func UnpegRequestHandlerFn

func UnpegRequestHandlerFn(cliCtx context.CLIContext) http.HandlerFunc

Types

type PegReq

type PegReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	// TODO: Define more types if needed
	Address         string `json:"address" yaml:"address"`
	MainchainTxHash string `json:"mainchain_tx_hash" yaml:"mainchain_tx_hash"`
	Amount          string `json:"amount" yaml:"amount"`
}

type RequestInvitationReq

type RequestInvitationReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	// TODO: Define more types if needed
	Address              string `json:"address" yaml:"address"`
	NewCosignerPublicKey string `json:"new_cosigner_public_key" yaml:"new_cosigner_public_key"`
	FirstCosignerAddress string `json:"first_cosigner_address" yaml:"first_cosigner_address"`
}

type UnpegReq

type UnpegReq struct {
	BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
	// TODO: Define more types if needed
	Address              string `json:"address" yaml:"address"`
	MainchainAddress     string `json:"mainchain_address" yaml:"mainchain_address"`
	Amount               string `json:"amount" yaml:"amount"`
	FirstCosignerAddress string `json:"first_cosigner_address" yaml:"first_cosigner_address"`
}

Jump to

Keyboard shortcuts

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