Documentation ¶
Index ¶
- func SetErrorResponse(ctx *gin.Context, code int, msg string, err error)
- type Config
- type DefaultResponse
- type HealthCheck
- type MessageData
- type Server
- func (s Server) AddActivity(ctx *gin.Context)
- func (s Server) AddSubject(ctx *gin.Context)
- func (s Server) GetActivities(ctx *gin.Context)
- func (s Server) GetActivity(ctx *gin.Context)
- func (s Server) GetSubject(ctx *gin.Context)
- func (s Server) GetSubjects(ctx *gin.Context)
- func (s Server) Liveness(ctx *gin.Context)
- func (s Server) Readiness(ctx *gin.Context)
- func (s Server) RemoveActivity(ctx *gin.Context)
- func (s Server) RemoveSubject(ctx *gin.Context)
- func (s Server) RouteNotFound(ctx *gin.Context)
- func (s Server) SendDiscordNotification(ctx *gin.Context)
- func (s Server) SetupRoutes()
- func (s Server) Start() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultResponse ¶
type HealthCheck ¶
type HealthCheck struct {
Status string `json:"status"`
}
type MessageData ¶
type Server ¶
func (Server) AddActivity ¶
func (Server) AddSubject ¶
func (Server) GetActivities ¶
func (Server) GetActivity ¶
func (Server) GetSubject ¶
func (Server) GetSubjects ¶
func (Server) RemoveActivity ¶
func (Server) RemoveSubject ¶
func (Server) RouteNotFound ¶
func (Server) SendDiscordNotification ¶
func (Server) SetupRoutes ¶
func (s Server) SetupRoutes()
Click to show internal directories.
Click to hide internal directories.