Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnTracker ¶
type ConnTracker struct {
// contains filtered or unexported fields
}
ConnTracker uses Go's native sync.Map for safe, concurrent connection tracking.
func NewConnTracker ¶
func NewConnTracker() *ConnTracker
func (*ConnTracker) Count ¶
func (ct *ConnTracker) Count() int64
func (*ConnTracker) Wait ¶
func (ct *ConnTracker) Wait(ctx context.Context)
type H3Listener ¶
func (*H3Listener) Addr ¶
func (h *H3Listener) Addr() string
func (*H3Listener) Kind ¶
func (h *H3Listener) Kind() string
func (*H3Listener) Start ¶
func (h *H3Listener) Start() error
type HTTPListener ¶
type HTTPListener struct {
Srv *http.Server
Tracker *ConnTracker
IsTLS bool
}
func (*HTTPListener) Addr ¶
func (h *HTTPListener) Addr() string
func (*HTTPListener) Kind ¶
func (h *HTTPListener) Kind() string
func (*HTTPListener) Start ¶
func (h *HTTPListener) Start() error
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(cfg ManagerConfig) (*Manager, error)
func (*Manager) BuildListeners ¶
func (*Manager) CloseFirewall ¶ added in v0.0.6
func (m *Manager) CloseFirewall()
type ManagerConfig ¶
type Route ¶
type Route struct {
Backends []*xhttp.Backend
Proxy *xhttp.Proxy
// contains filtered or unexported fields
}
func FallbackRoute ¶
type TCPListener ¶
func (*TCPListener) Addr ¶
func (t *TCPListener) Addr() string
func (*TCPListener) Kind ¶
func (t *TCPListener) Kind() string
func (*TCPListener) Start ¶
func (t *TCPListener) Start() error
type UDPListener ¶ added in v0.1.0
UDPListener wraps an xudp.Proxy and implements the Listener interface.
func (*UDPListener) Addr ¶ added in v0.1.0
func (u *UDPListener) Addr() string
func (*UDPListener) Kind ¶ added in v0.1.0
func (u *UDPListener) Kind() string
func (*UDPListener) Start ¶ added in v0.1.0
func (u *UDPListener) Start() error
Click to show internal directories.
Click to hide internal directories.