Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadRequest = errors.New("validation error")
Functions ¶
This section is empty.
Types ¶
type BTCResponse ¶
func BTCToResponse ¶
func BTCToResponse(btc entity.BTCPrice) BTCResponse
type BitcoinHTTPHandlers ¶
type BitcoinHTTPHandlers struct {
// contains filtered or unexported fields
}
func NewBitcoinHTTPHandlers ¶
func NewBitcoinHTTPHandlers(bitcoinService *service.BitcoinService) *BitcoinHTTPHandlers
func (*BitcoinHTTPHandlers) SetRoutes ¶
func (h *BitcoinHTTPHandlers) SetRoutes(r chi.Router)
type SetBTCPriceRequest ¶
type SetBTCPriceRequest struct {
Price float64 `json:"price"`
}
Click to show internal directories.
Click to hide internal directories.