server

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 13 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 represents the TQMemory network server.

func New

func New(cache tqmemory.CacheInterface, addr string) *Server

New creates a new Server instance.

func NewWithOptions

func NewWithOptions(cache tqmemory.CacheInterface, addr string, maxConnections int) *Server

NewWithOptions creates a new Server with options.

func (*Server) CurrentConnections

func (s *Server) CurrentConnections() int

CurrentConnections returns the current number of connections.

func (*Server) Start

func (s *Server) Start() error

Start runs the server (TCP or Unix socket based on address).

Jump to

Keyboard shortcuts

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