Documentation ¶
Index ¶
- type BalanceCurrency
- type ClientInterface
- type CoinmateClient
- func (c *CoinmateClient) GetBaseUrl() string
- func (c *CoinmateClient) GetNonce() string
- func (c *CoinmateClient) GetRequestBody(additionalParams map[string]string) []byte
- func (c *CoinmateClient) GetSignature(clientId, apiKey, nonce, privateKey string) string
- func (c *CoinmateClient) MakePublicRequest(r Request) (Response, error)
- func (c *CoinmateClient) MakeSecureRequest(r Request) (Response, error)
- type CoinmateResponse
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceCurrency ¶
type BalanceCurrency struct { Currency string `json:"currency"` Balance float32 `json:"balance"` Reserved float32 `json:"reserved"` Available float32 `json:"available"` }
Balance currency data
type ClientInterface ¶
type CoinmateClient ¶
type CoinmateClient struct { ClientID string ApiKey string PrivateKey string Nonce string Signature string // contains filtered or unexported fields }
func GetCoinmateClient ¶
func GetCoinmateClient(clientId, publicKey, privateKey string) *CoinmateClient
Return Coinmate client
func (*CoinmateClient) GetNonce ¶
func (c *CoinmateClient) GetNonce() string
Return nonce (security)
func (*CoinmateClient) GetRequestBody ¶
func (c *CoinmateClient) GetRequestBody(additionalParams map[string]string) []byte
Return request body due to security
func (*CoinmateClient) GetSignature ¶
func (c *CoinmateClient) GetSignature(clientId, apiKey, nonce, privateKey string) string
Return signature (security)
func (*CoinmateClient) MakePublicRequest ¶
func (c *CoinmateClient) MakePublicRequest(r Request) (Response, error)
Make public request
func (*CoinmateClient) MakeSecureRequest ¶
func (c *CoinmateClient) MakeSecureRequest(r Request) (Response, error)
Make secure request
type CoinmateResponse ¶
Click to show internal directories.
Click to hide internal directories.