server

package
v0.0.0-...-ba4a4a7 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiServer

func NewApiServer(configService *config.Service) api.Api

func NewWsPool

func NewWsPool() *wsPool

func ServeWs

func ServeWs(pool *wsPool, w http.ResponseWriter, r *http.Request)

define our WebSocket endpoint

Types

type Message

type Message struct {
	Type int    `json:"type"`
	Body string `json:"body"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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