Documentation
¶
Index ¶
- func GetContextValue[T any](c *gin.Context, key string) (T, error)
- func GetCurrentSession(c *gin.Context) (*models.SessionStore, error)
- func RefreshSession(c *gin.Context) error
- func SetupMiddlewares(engine *gin.Engine, node *snowflake.Node, redisClient *redis.Client, ...)
- func SetupRoutes(engine *gin.Engine) error
- type GameHandler
- type HealthHandler
- type PlayHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentSession ¶
func GetCurrentSession(c *gin.Context) (*models.SessionStore, error)
func RefreshSession ¶
func SetupMiddlewares ¶
func SetupRoutes ¶
Types ¶
type GameHandler ¶
type GameHandler struct {
// contains filtered or unexported fields
}
type HealthHandler ¶
type HealthHandler struct {
// contains filtered or unexported fields
}
type PlayHandler ¶
type PlayHandler struct {
// contains filtered or unexported fields
}
func (*PlayHandler) Play ¶
func (ph *PlayHandler) Play(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.