handlers

package
v0.0.0-...-f65745d Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerAPI

func HandlerAPI(f func(ctx *context.Context, c *gin.Context) error) gin.HandlerFunc

HandlerAPI .

func HandlerPage

func HandlerPage(f func(ctx *context.Context, c *gin.Context) error) gin.HandlerFunc

HandlerPage provide abstractionn for page handler receive the context of application.

Types

type Client

type Client struct {
	UserName string
	Messages chan domains.Message
	Address  *net.UDPAddr
	Conn     *net.UDPConn
	WS       *websocket.Conn
	Config
}

func (*Client) Close

func (c *Client) Close()

func (*Client) NewUDP

func (c *Client) NewUDP() error

type Config

type Config struct {
	Port       int
	Address    string
	BufferSize int
}

type NETHandler

type NETHandler struct {
	// contains filtered or unexported fields
}

func NewNETHandler

func NewNETHandler(cache *cache.Redis) *NETHandler

func (*NETHandler) ChatHandler

func (h *NETHandler) ChatHandler(ctx *context.Context, c *gin.Context) error

func (*NETHandler) ChatWSHandler

func (h *NETHandler) ChatWSHandler(ctx *context.Context, c *gin.Context) error

func (*NETHandler) LoginHandler

func (h *NETHandler) LoginHandler(ctx *context.Context, c *gin.Context) error

Jump to

Keyboard shortcuts

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