server

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package server provides server functionality.

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 defines a server.

func NewServer

func NewServer(host string, port int) *Server

NewServer creates a new server.

func (*Server) Shutdown

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

Shutdown shuts down the server.

func (*Server) Start

func (s *Server) Start() error

Start starts the server.

Directories

Path Synopsis
Package routes provides structs for all routes.
Package routes provides structs for all routes.
index
Package index provides an index route handler.
Package index provides an index route handler.
ws
Package ws provides a websocket route handler.
Package ws provides a websocket route handler.

Jump to

Keyboard shortcuts

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