Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSumHandler ¶
func NewSumHandler(r *mux.Router, u domain.SumUsecase)
NewSumHandler returns HTTP delivery instance for Sum
Types ¶
type SumHandler ¶
type SumHandler struct {
SumUsecase domain.SumUsecase
}
SumHandler represent HTTP handler for Sum
func (*SumHandler) Index ¶
func (h *SumHandler) Index(w http.ResponseWriter, r *http.Request)
Index returns all Sums into JSON TODO: handle when Sum repository is empty
Click to show internal directories.
Click to hide internal directories.