Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶
type Server interface {
ListenAndServe(ctx context.Context) error
// Addr returns the network address or interface name the server is bound to
Addr() string
// SetupNetworkJobs builds the job list, saves it to the state file, and
// returns the state file path. For HTTP/SOCKS5 this also starts the PAC
// server, tied to ctx so it shuts down automatically when ctx is cancelled.
SetupNetworkJobs(ctx context.Context) (string, error)
}
Server represents a core component that processes network traffic. ListenAndServe blocks until ctx is cancelled, then releases all resources.
Click to show internal directories.
Click to hide internal directories.