Documentation ¶
Index ¶
- func RecoveryMiddlware(c *gin.Context, recovered interface{})
- func SetupRouter() *gin.Engine
- type Server
- func (s *Server) AuthV1GoogleCallbackGet(c *gin.Context)
- func (s *Server) AuthV1GoogleGet(c *gin.Context)
- func (s *Server) AuthV1OpenIDCallbackGet(c *gin.Context)
- func (s *Server) AuthV1OpenIDGet(c *gin.Context)
- func (s *Server) AuthV1RegisterPost(c *gin.Context)
- func (s *Server) AuthV1RegisterVerifyGet(c *gin.Context)
- func (s *Server) EventsV1Get(c *gin.Context)
- func (s *Server) EventsV1PastGet(c *gin.Context)
- func (s *Server) EventsV1PastSocIDGet(c *gin.Context)
- func (s *Server) EventsV1UpcomingGet(c *gin.Context)
- func (s *Server) EventsV1UpcomingSocIDGet(c *gin.Context)
- func (s *Server) LoggingMiddleware() gin.HandlerFunc
- func (s *Server) MiscMiddleware() gin.HandlerFunc
- func (s *Server) MiscV1BrewGet(c *gin.Context)
- func (s *Server) MiscV1PingGet(c *gin.Context)
- func (s *Server) RootGet(c *gin.Context)
- func (s *Server) Start(ctx context.Context) error
- func (s *Server) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecoveryMiddlware ¶
* This middleware prints a panic in JSON to the log and redirects * the user to an error page with a get parameter containing the error message
func SetupRouter ¶
SetupRouter function will perform all route operations
Types ¶
type Server ¶
type Server struct { Config config.Config HTTP *http.Server Scheduler *services.SchedulerService Datastore *services.MongoDatastore }
func (*Server) AuthV1GoogleCallbackGet ¶
func (*Server) AuthV1GoogleGet ¶
func (*Server) AuthV1OpenIDCallbackGet ¶
func (*Server) AuthV1OpenIDGet ¶
func (*Server) AuthV1RegisterPost ¶
func (*Server) AuthV1RegisterVerifyGet ¶
func (*Server) EventsV1Get ¶
func (*Server) EventsV1PastGet ¶
func (*Server) EventsV1PastSocIDGet ¶
func (*Server) EventsV1UpcomingGet ¶
func (*Server) EventsV1UpcomingSocIDGet ¶
func (*Server) LoggingMiddleware ¶
func (s *Server) LoggingMiddleware() gin.HandlerFunc
* This middleware logs primarily the request path, method, response status and completion latency
func (*Server) MiscMiddleware ¶
func (s *Server) MiscMiddleware() gin.HandlerFunc
* Does any random things to the context we want done before reaching the endpoint func
func (*Server) MiscV1BrewGet ¶
func (*Server) MiscV1PingGet ¶
Click to show internal directories.
Click to hide internal directories.