models

package
v0.0.0-...-6c97315 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseRequest

type CloseRequest struct {
	TxID string `json:"txid"`
	Vout uint32 `json:"vout"`
}

type CloseResponse

type CloseResponse struct {
	CloseTx []byte `json:"closeTx"`
}

type CreateRequest

type CreateRequest struct {
	Version int    `json:"version"`
	Net     string `json:"net"`

	SenderPubKey []byte `json:"senderPubKey"`
	SenderOutput string `json:"senderOutput"`
}

type CreateResponse

type CreateResponse struct {
	Version int    `json:"version"`
	Net     string `json:"net"`
	Timeout int64  `json:"timeout"`
	Fee     int64  `json:"fee"`

	ReceiverPubKey []byte `json:"receiverPubKey"`
	ReceiverOutput string `json:"receiverOutput"`

	FundingAddress string `json:"fundingAddress"`

	ReceiverData []byte `json:"receiverData"`
}

type OpenRequest

type OpenRequest struct {
	TxID string `json:"txid"`
	Vout uint32 `json:"vout"`

	ReceiverData []byte `json:"receiverData"`

	Version int    `json:"version"`
	Net     string `json:"net"`
	Timeout int64  `json:"timeout"`
	Fee     int64  `json:"fee"`

	SenderPubKey []byte `json:"senderPubKey"`
	SenderOutput string `json:"senderOutput"`

	ReceiverPubKey []byte `json:"receiverPubKey"`
	ReceiverOutput string `json:"receiverOutput"`

	SenderSig []byte `json:"senderSig"`
}

type OpenResponse

type OpenResponse struct {
	AuthToken string `json:"authToken"`
}

type Payment

type Payment struct {
	Amount int64  `json:"amount"`
	Target string `json:"target"`
}

type SendRequest

type SendRequest struct {
	TxID string `json:"txid"`
	Vout uint32 `json:"vout"`

	Payment []byte `json:"payment"`

	SenderSig []byte `json:"senderSig"`
}

type SendResponse

type SendResponse struct {
}

type StatusRequest

type StatusRequest struct {
	TxID string `json:"txid"`
	Vout uint32 `json:"vout"`
}

type StatusResponse

type StatusResponse struct {
	Status       int    `json:"status"`
	Balance      int64  `json:"balance"`
	PaymentsHash []byte `json:"paymentsHash"`
}

type ValidateRequest

type ValidateRequest struct {
	TxID string `json:"txid"`
	Vout uint32 `json:"vout"`

	Payment []byte `json:"payment"`
}

type ValidateResponse

type ValidateResponse struct {
	Valid bool `json:"valid"`
}

Jump to

Keyboard shortcuts

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