webserver

package
v0.0.0-...-52b7346 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowErrorPage

func ShowErrorPage(c *gin.Context)

Types

type GameServer

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

func NewGameServer

func NewGameServer(lobbyManager *lobby.Manager) *GameServer

func (*GameServer) HandleConnection

func (g *GameServer) HandleConnection(ws *websocket.Conn)

type Message

type Message struct {
	MessageType string                 `json:"messageType"`
	Payload     map[string]interface{} `json:"payload"`
}

type WebServer

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

func NewWebServer

func NewWebServer(fqdn string, mongoClient *mongo.Client) *WebServer

func (*WebServer) RunTLS

func (w *WebServer) RunTLS(listenAddr string, tlsCertPath string, tlsKeyPath string) error

Jump to

Keyboard shortcuts

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