Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusOK = "OK" StatusError = "ERROR" )
View Source
const ( ErrNone int = 0 ErrDecode int = 1 ErrUnsafeURL int = 2 ErrUnreachable int = 3 ErrInvalidResponse int = 4 ErrResponse int = 5 ErrUnknown int = 6 ErrWrongTag int = 7 ErrNoAvailableBalance int = 8 ErrRequestExpired int = 9 ErrNoRoute int = 10 ErrTorNotSupported int = 11 ErrAlreadyUsed int = 12 ErrForbidden int = 13 StatusContacting int = 100 StatusInvoiceCreated int = 101 StatusReceiving int = 102 )
After adding new codes here, remember to export them in the root libwallet module so that the apps can consume them.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateInvoiceFunction ¶
type Event ¶
type Event struct {
Code int
Message string
Metadata EventMetadata
}
type EventMetadata ¶
type Response ¶
type WithdrawResponse ¶
type WithdrawResponse struct {
Response
Tag string `json:"tag"`
K1 string `json:"k1"`
Callback string `json:"callback"`
MaxWithdrawable stringOrNumber `json:"maxWithdrawable"`
MinWithdrawable stringOrNumber `json:"minWithdrawable"`
DefaultDescription string `json:"defaultDescription"`
}
func (*WithdrawResponse) Validate ¶
func (wr *WithdrawResponse) Validate() (int, string)
Click to show internal directories.
Click to hide internal directories.