Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "0.0.0-dev"
Functions ¶
Types ¶
type ProxyEnv ¶
type ProxyEnv struct {
Cfg *config.Config
AppDir string
Server proxyServer
// contains filtered or unexported fields
}
ProxyEnv holds a bootstrapped proxy ready to run, shared by the bare `snirect` entrypoint via RunProxy. The owner calls Cleanup when done.
func BootstrapProxy ¶
BootstrapProxy performs the shared startup preparation: load config, build the resolver + CA + proxy server. It does NOT start serving. On error any partial state is cleaned up.
type RunOptions ¶
type RunOptions struct {
OnReady func(port int)
}
RunOptions configures RunProxy. Today the only option is OnReady; the type is kept so callers can grow it without touching RunProxy's signature.
Click to show internal directories.
Click to hide internal directories.