websocketserver

package
v0.0.0-...-1599866 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServerConfig

type HTTPServerConfig struct {
	Host string
	Port int
}

HTTPServerConfig represents the basic server config

func (HTTPServerConfig) GetAddr

func (c HTTPServerConfig) GetAddr() string

GetAddr returns server address

type WSServer

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

WSServer represents a http.Server, the gomultiwa instance, a websocket upgrader and router

func NewWSServer

func NewWSServer(config *WSServerConfig) *WSServer

NewWSServer returns new WSServer

func (*WSServer) HandleExtensionFunc

func (ws *WSServer) HandleExtensionFunc(method string, path string, mq *messagequeue.MessageQueue)

func (*WSServer) Start

func (ws *WSServer) Start() error

Start stars the server

type WSServerConfig

type WSServerConfig struct {
	HTTPServerConfig
	WA gmwi.GoMultiWAInterface
}

WSServerConfig represents the initial config for WSServer

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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