server

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntryPoint

type EntryPoint struct {
	Address string `cfg:"address"`
	Network string `cfg:"network"`
}

func (*EntryPoint) Serve

func (e *EntryPoint) Serve(ctx context.Context, name string) error

type Server

type Server struct {
	LoadValue   string                `cfg:"load_value"`
	EntryPoints map[string]EntryPoint `cfg:"entrypoints"`
	HTTP        http.HTTP             `cfg:"http"`
	TCP         tcp.TCP               `cfg:"tcp"`
	UDP         udp.UDP               `cfg:"udp"`
}

func (*Server) Run

func (s *Server) Run(ctx context.Context, wg *sync.WaitGroup) error

Directories

Path Synopsis
Package ipcheck provides a protocol-agnostic allow-list checker shared by the TCP and UDP ip_allow_list middlewares.
Package ipcheck provides a protocol-agnostic allow-list checker shared by the TCP and UDP ip_allow_list middlewares.
tcp
udp
middleware/dns
Package dns is a UDP middleware that answers DNS queries from a set of statically configured records, falling back to upstream resolvers for names it does not own.
Package dns is a UDP middleware that answers DNS queries from a set of statically configured records, falling back to upstream resolvers for names it does not own.

Jump to

Keyboard shortcuts

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