Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProxyProtocolInfo ¶
type ProxyProtocolInfo struct {
Protocol string // TCP4 or TCP6
SrcIP string
DestIP string
SrcPort int
DestPort int
OriginalConn net.Conn // The original connection after PROXY protocol parsing
}
ProxyProtocolInfo holds information parsed from incoming PROXY protocol header
type RouteAPIResponse ¶
type RouteAPIResponse struct {
Endpoints []string `json:"endpoints"`
}
RouteAPIResponse represents the response from the route API
type RouteRecord ¶
RouteRecord represents a routing configuration
type SNIProxy ¶
type SNIProxy struct {
// contains filtered or unexported fields
}
SNIProxy represents the main proxy server
func NewSNIProxy ¶
func NewSNIProxy(port int, remoteConfigURL, publicKey, localProxyAddr string, localProxyPort int, localOverrides []string, proxyProtocol bool, trustedUpstreams []string) (*SNIProxy, error)
NewSNIProxy creates a new SNI proxy instance
func (*SNIProxy) GetCacheStats ¶
GetCacheStats returns cache statistics
func (*SNIProxy) UpdateLocalSNIs ¶
UpdateLocalSNIs updates the local SNIs and invalidates cache for changed domains
Click to show internal directories.
Click to hide internal directories.