Documentation
¶
Index ¶
- Variables
- func HmacSha256Base64Signer(message string, secretKey string) (string, error)
- type AccountsEntry
- type Credentials
- type CurrenciesEntry
- type DepositAddress
- type DepositHistory
- type LedgerEntry
- type OK500Error
- type OKError
- func Err30001() OKError
- func Err30002() OKError
- func Err30003() OKError
- func Err30004() OKError
- func Err30005() OKError
- func Err30006() OKError
- func Err30007() OKError
- func Err30008() OKError
- func Err30012() OKError
- func Err30013() OKError
- func Err30015() OKError
- func Err30023(t string) OKError
- func Err30024(t string) OKError
- func Err30025(t string) OKError
- func Err30031(t string) OKError
- func Err30032() OKError
- func Err33007() OKError
- func Err34002() OKError
- func Err34008() OKError
- type WalletEntry
- type WithdrawalFee
Constants ¶
This section is empty.
Variables ¶
View Source
var ExpectedResponseHeaders = map[string]string{
"Cache-Control": "",
"Content-Length": "",
"Content-Type": "",
"Date": "",
"Expires": "",
"Set-Cookie": "",
"Pragma": "",
"Via": "",
"X-Brokerid": "",
"X-Content-Type-Options": "",
"X-Frame-Options": "",
"X-Kong-Proxy-Latency": "",
"X-Kong-Upstream-Latency": "",
"X-Ratelimit-Limit-Second": "",
"X-Ratelimit-Remaining-Second": "",
"X-Xss-Protection": "",
}
Each response should have these headers.
View Source
var ExpectedResponseHeadersB = map[string]string{
"Cache-Control": "",
"Content-Length": "",
"Content-Type": "",
"Date": "",
"Expires": "",
"Set-Cookie": "",
"Pragma": "",
"Via": "",
"X-Brokerid": "",
"X-Content-Type-Options": "",
"X-Frame-Options": "",
"X-Kong-Proxy-Latency": "",
"X-Kong-Upstream-Latency": "",
"X-Xss-Protection": "",
}
Some responses return all of the above but omit X-Ratelimit*
Functions ¶
func HmacSha256Base64Signer ¶
signing a message using: hmac sha256 + base64
eg: message = Pre_hash function comment secretKey = E65791902180E9EF4510DB6A77F6EBAE return signed string = TO6uwdqz+31SIPkd4I+9NiZGmVH74dXi+Fd5X0EzzSQ=
Types ¶
type AccountsEntry ¶
type Credentials ¶
type CurrenciesEntry ¶
type DepositAddress ¶
type DepositHistory ¶
type LedgerEntry ¶
type OK500Error ¶
type OK500Error struct { ErrorMessage string `json:"error_message"` Message string `json:"message"` }
5xx error messages
func Err500 ¶
func Err500() OK500Error
type OKError ¶
type OKError struct { ErrorMessage string `json:"error_message"` Code int `json:"code"` ErrorCode string `json:"error_code"` Message string `json:"message"` }
Ordinary 4xx error messages.
type WalletEntry ¶
type WithdrawalFee ¶
Click to show internal directories.
Click to hide internal directories.