Documentation ¶
Index ¶
Constants ¶
const (
KeyLoggerID ctxKeyID = iota
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MiddlewareLogger ¶
type MiddlewareLogger struct{}
func NewMiddlewareLogger ¶
func NewMiddlewareLogger() *MiddlewareLogger
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetEvents ¶
func (s *Server) GetEvents(w http.ResponseWriter, r *http.Request)
@Summary Get events @Tags events @Description Get events by show ID @ID get-events @Accept json @Produce json @Param id path int true "show ID" @Success 200 {object} EventListResponse @Failure 400,404 {object} server.ErrorResponse @Failure 500 {object} server.ErrorResponse @Router /shows/{id}/events [get].
func (*Server) GetPlaces ¶
func (s *Server) GetPlaces(w http.ResponseWriter, r *http.Request)
@Summary Get places @Tags places @Description Get places by event ID @ID get-places @Accept json @Produce json @Param id path int true "event ID" @Success 200 {object} PlaceListResponse @Failure 400,404 {object} server.ErrorResponse @Failure 500 {object} server.ErrorResponse @Router /events/{id}/places [get].
func (*Server) GetShows ¶
func (s *Server) GetShows(w http.ResponseWriter, r *http.Request)
@Summary Get shows @Tags shows @Description Get shows from remote API and store them in the local service @ID get-shows @Accept json @Produce json @Success 200 {object} ShowListResponse @Failure 400,404 {object} server.ErrorResponse @Failure 500 {object} server.ErrorResponse @Router /shows [get].