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