server

package
v0.0.0-...-ba7b321 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultPort is the default port number to listen on.
	DefaultPort = 80
	// DefaultBlockSize is the default size of i/o buffer in bytes.
	DefaultBlockSize = 10 * 1024
	// DefaultInactiveRequestTimeout is the default timeout for inactive requests. In particular, this sets a limit on how long the backend can wait before writing headers and the response status.
	DefaultInactiveRequestTimeout = 60 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Port number to listen on.
	Port int
	// BlockSize is the size of i/o buffer in bytes.
	BlockSize int
	// InactiveRequestTimeout is the timeout for inactive requests.
	InactiveRequestTimeout time.Duration
}

type RelayClientUnavailableError

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

func (*RelayClientUnavailableError) Error

type Server

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

func NewServer

func NewServer(conf Config) *Server

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

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