server

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocketHandler added in v1.0.3

type WebSocketHandler interface {
	ServerWs(ws *transport.WebSocketTransport, request *http.Request)
}

type WebSocketServer

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

func NewWebSocketServer

func NewWebSocketServer(handler WebSocketHandler) *WebSocketServer

func (*WebSocketServer) Bind

func (server *WebSocketServer) Bind(cfg WebSocketServerConfig)

type WebSocketServerConfig

type WebSocketServerConfig struct {
	Host          string
	Port          int
	CertFile      string
	KeyFile       string
	WebSocketPath string
}

func DefaultConfig

func DefaultConfig() WebSocketServerConfig

Jump to

Keyboard shortcuts

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