Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CustomError ¶
type CustomError struct { Error bool `json:"error"` Message string `json:"message"` Data interface{} `json:"data"` }
CustomError struct to represent an error response
func NewCustomError ¶
func NewCustomError(message string, data interface{}) CustomError
NewCustomError creates a new instance of CustomError
type CustomResponse ¶
type CustomResponse struct { Data interface{} `json:"data"` Error bool `json:"error"` Message string `json:"message"` }
CustomResponse struct to represent a successful response
func NewCustomResponse ¶
func NewCustomResponse(data interface{}, message string) CustomResponse
NewCustomResponse creates a new instance of CustomResponse
type PriceResponse ¶
func GetPrice ¶
func GetPrice(pair string) (*PriceResponse, error)
Click to show internal directories.
Click to hide internal directories.