server

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server added in v1.0.9

type Server interface {
	Start()
	StartTls(certFile, certKey string)
	GetConnections() map[string]net.Conn
	Shutdown()
}

type TcpServer added in v1.0.9

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

func NewTcpServer added in v1.0.9

func NewTcpServer(ctx context.Context, serveAddress string) TcpServer

func (*TcpServer) GetConnections added in v1.0.9

func (ws *TcpServer) GetConnections() map[string]net.Conn

func (*TcpServer) Shutdown added in v1.0.9

func (srv *TcpServer) Shutdown()

func (*TcpServer) Start added in v1.0.9

func (ws *TcpServer) Start()

func (*TcpServer) StartTls added in v1.0.9

func (ws *TcpServer) StartTls(config *tls.Config)

type WsServer

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

func NewWsServer

func NewWsServer(ctx context.Context, serveAddress string) WsServer

func (*WsServer) GetConnections added in v0.0.1

func (ws *WsServer) GetConnections() map[string]*websocket.Conn

func (*WsServer) Shutdown

func (ws *WsServer) Shutdown()

func (*WsServer) Start

func (ws *WsServer) Start()

func (*WsServer) StartTls

func (ws *WsServer) StartTls(certFile, certKey string)

Jump to

Keyboard shortcuts

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