Documentation ¶
Index ¶
- func BindFromJSON(body io.ReadCloser, v interface{}) (err error)
- func NewHolidays(bloc presenter.HolidayBloc) router.HTTPRouter
- func RenderError(w http.ResponseWriter, err error)
- func RenderJSON(w http.ResponseWriter, s int, v interface{})
- type DateRange
- type Holiday
- type HolidaySearchRequest
- type HolidaySearchResponse
- type HolidaysRouter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindFromJSON ¶
func BindFromJSON(body io.ReadCloser, v interface{}) (err error)
BindFromJSON ...
func NewHolidays ¶
func NewHolidays(bloc presenter.HolidayBloc) router.HTTPRouter
Types ¶
type HolidaySearchRequest ¶
type HolidaySearchResponse ¶
type HolidaySearchResponse struct { Holidays []*Holiday `json:"holidays"` Request HolidaySearchRequest `json:"request"` }
type HolidaysRouter ¶
type HolidaysRouter struct {
// contains filtered or unexported fields
}
HolidaysRouter ...
func (*HolidaysRouter) Find ¶
func (rt *HolidaysRouter) Find(w http.ResponseWriter, r *http.Request)
func (*HolidaysRouter) Import ¶
func (rt *HolidaysRouter) Import(w http.ResponseWriter, r *http.Request)
func (*HolidaysRouter) Route ¶
func (rt *HolidaysRouter) Route(mux *chi.Mux) (err error)
func (*HolidaysRouter) Search ¶
func (rt *HolidaysRouter) Search(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.