Documentation ¶
Index ¶
- type CoinController
- func (c CoinController) Create(w http.ResponseWriter, r *http.Request)
- func (c CoinController) Delete(w http.ResponseWriter, r *http.Request)
- func (c CoinController) Index(w http.ResponseWriter, r *http.Request)
- func (c CoinController) Show(w http.ResponseWriter, r *http.Request)
- func (c CoinController) Update(w http.ResponseWriter, r *http.Request)
- type MarketController
- type OrderController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoinController ¶
type CoinController struct {
// contains filtered or unexported fields
}
CoinController has the business rules and handles requests
func ProvideCoinCntrl ¶
func ProvideCoinCntrl(r *repository.CoinRepository) (CoinController, error)
ProvideCoinCntrl from repository
func (CoinController) Create ¶
func (c CoinController) Create(w http.ResponseWriter, r *http.Request)
Create controls post request to endpoint/
func (CoinController) Delete ¶
func (c CoinController) Delete(w http.ResponseWriter, r *http.Request)
Delete controls delete request to endpoint/{id}
func (CoinController) Index ¶
func (c CoinController) Index(w http.ResponseWriter, r *http.Request)
Index controls requests to endpoint/
func (CoinController) Show ¶
func (c CoinController) Show(w http.ResponseWriter, r *http.Request)
Show controls requests to endpoint/{id}
func (CoinController) Update ¶
func (c CoinController) Update(w http.ResponseWriter, r *http.Request)
Update controls put request to endpoint/{id}
type MarketController ¶
type MarketController struct {
// contains filtered or unexported fields
}
MarketController has the business rules and handles requests
func ProvideMarketCntrl ¶
func ProvideMarketCntrl(r *repository.MarketRepository) (MarketController, error)
ProvideMarketCntrl from repository
func (MarketController) Create ¶
func (c MarketController) Create(w http.ResponseWriter, r *http.Request)
Create controls post request to endpoint/
func (MarketController) Delete ¶
func (c MarketController) Delete(w http.ResponseWriter, r *http.Request)
Delete controls delete request to endpoint/{id}
func (MarketController) Index ¶
func (c MarketController) Index(w http.ResponseWriter, r *http.Request)
Index controls requests to endpoint/
func (MarketController) Show ¶
func (c MarketController) Show(w http.ResponseWriter, r *http.Request)
Show controls requests to endpoint/{id}
type OrderController ¶
type OrderController struct {
// contains filtered or unexported fields
}
OrderController has the business rules and handles requests
func ProvideOrderCntrl ¶
func ProvideOrderCntrl(r *repository.OrderRepository) (OrderController, error)
ProvideOrderCntrl from repository
func (OrderController) Create ¶
func (c OrderController) Create(w http.ResponseWriter, r *http.Request)
Create controls post request to endpoint/
func (OrderController) Delete ¶
func (c OrderController) Delete(w http.ResponseWriter, r *http.Request)
Delete controls delete request to endpoint/{id}