webserver

package
v1.0.1-0...-6f851f5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EVENT_SERVICE_CHANGE = "serviceChange"
)
View Source
const (
	ROOM_SERVICES_LISTENERS = "serviceListeners"
)

Variables

This section is empty.

Functions

func GinMiddleware

func GinMiddleware(allowOrigin string) gin.HandlerFunc

Types

type WebServer

type WebServer struct {
	Address      string
	Port         int
	SSL          bool
	Router       *gin.Engine
	InputChannel chan response.Response
	ServiceMap   *map[string]data.ServiceData
	ServerSocket *socketio.Server
}

func NewWebServer

func NewWebServer(serverConfPath string) *WebServer

func (*WebServer) Start

func (ws *WebServer) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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