Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(r *httprouter.Router, prefix string, l Logger, rf responseMapper.ResponseFormatter, checkSchedule chan<- bool, scheduleRepo usecase.ScheduleRepo)
Handle adds schedule handling endpoints
Types ¶
type Formatter ¶
type Formatter interface { WriteResponse(w http.ResponseWriter, res []byte, statusCode int) WriteEmpty(w http.ResponseWriter, statusCode int) Errorf(format string, a ...interface{}) []byte Error(a interface{}) []byte Schedule(sd *usecase.ScheduleData) ([]byte, error) ScheduleID(id usecase.ScheduleID) ([]byte, error) ScheduleMap(ss map[usecase.ScheduleID]*schedule.Schedule) ([]byte, error) }
Formatter defines the formatter interface for output responses
Click to show internal directories.
Click to hide internal directories.