handlers

package
v0.0.0-...-0db9f98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContextValue

func GetContextValue[T any](c *gin.Context, key string) (T, error)

func GetCurrentSession

func GetCurrentSession(c *gin.Context) (*models.SessionStore, error)

func RefreshSession

func RefreshSession(c *gin.Context) error

func SetupMiddlewares

func SetupMiddlewares(engine *gin.Engine, node *snowflake.Node, redisClient *redis.Client, redisPrefix string)

func SetupRoutes

func SetupRoutes(engine *gin.Engine) error

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址