Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxIdleConnections int = 20 RequestTimeout int = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceRecord ¶
type GetBalanceResponse ¶
type GetBalanceResponse struct { Error string `json:"error"` Response []BalanceRecord `json:"response"` }
type HttpApiClient ¶
type HttpApiClient struct {
// contains filtered or unexported fields
}
func NewHttpApiClient ¶
func NewHttpApiClient(baseUrl string) *HttpApiClient
func (*HttpApiClient) GetBalances ¶
func (c *HttpApiClient) GetBalances() ([]BalanceRecord, error)
func (*HttpApiClient) PostTransaction ¶
func (c *HttpApiClient) PostTransaction(userID int64, amount int64) (int64, error)
type PostTransactionRequest ¶
type PostTransactionResponse ¶
Click to show internal directories.
Click to hide internal directories.