Documentation
¶
Index ¶
Constants ¶
View Source
const ( JSONRPC_2 = "2.0" ISSUED_ECASH_REQUEST = "issued_ecash" REDEEMED_ECASH_REQUEST = "redeemed_ecash" TOTAL_BALANCE = "total_balance" LIST_KEYSETS = "list_keysets" ROTATE_KEYSET = "rotate_keyset" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IssuedEcashResponse ¶
type IssuedEcashResponse struct {
Keysets []KeysetIssued `json:"keysets"`
TotalIssued uint64 `json:"total_issued"`
}
type KeysetIssued ¶
type KeysetRedeemed ¶
type RedeemedEcashResponse ¶
type RedeemedEcashResponse struct {
Keysets []KeysetRedeemed `json:"keysets"`
TotalRedeemed uint64 `json:"total_redeemed"`
}
type Response ¶
type Response struct {
JsonRPC string `json:"jsonrpc"`
Result json.RawMessage `json:"result"`
Error Error `json:"error,omitempty"`
Id int `json:"id"`
}
func NewResponse ¶
func NewResponse(result json.RawMessage, id int) Response
type TotalBalanceResponse ¶
type TotalBalanceResponse struct {
TotalIssued IssuedEcashResponse `json:"total_issued"`
TotalRedeemed RedeemedEcashResponse `json:"total_redeemed"`
TotalInCirculation uint64 `json:"total_circulation"`
}
Click to show internal directories.
Click to hide internal directories.