server

package
v0.0.0-...-f578b72 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server handles standard WebSocket connections from frontend clients.

func NewServerWebsocket

func NewServerWebsocket(cfg *config.Config, sessionManager *session.Manager) *Server

NewServerWebsocket creates a new Server instance for handling WebSocket connections.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

Shutdown gracefully stops the server

func (*Server) Start

func (s *Server) Start() error

Start begins listening for connections

type WebsocketTwilio

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

WebsocketTwilio handles WebSocket connections from Twilio.

func NewWebsocketTwilio

func NewWebsocketTwilio(cfg *config.Config, sessionManager *session.Manager) *WebsocketTwilio

NewWebsocketTwilio creates a new WebsocketTwilio server instance.

func (*WebsocketTwilio) GetAddr

func (s *WebsocketTwilio) GetAddr() string

GetAddr returns the server's listen address (for logging in main)

func (*WebsocketTwilio) Shutdown

func (s *WebsocketTwilio) Shutdown(ctx context.Context) error

Shutdown gracefully stops the server

func (*WebsocketTwilio) Start

func (s *WebsocketTwilio) Start() error

Start begins listening for connections

Jump to

Keyboard shortcuts

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