server

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package server manages the HTTP server lifecycle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadPID

func ReadPID(path string) (int, error)

ReadPID reads the PID from a file.

func WritePID

func WritePID(path string) error

WritePID writes the current PID to a file.

Types

type Server

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

Server represents the proxy server.

func NewServer

func NewServer(atomic *config.AtomicConfig) (*Server, error)

NewServer creates a new proxy server.

func (*Server) Start

func (s *Server) Start() error

Start starts the server with graceful shutdown.

Jump to

Keyboard shortcuts

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