Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MonitorPath = "/__relay__up__/"
Functions ¶
This section is empty.
Types ¶
type Options ¶ added in v0.3.0
type Options struct { Service *ServiceOptions Relay *traffic.RelayOptions }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the relay service, exposing both the traffic handler and the monitoring page.
func NewService ¶
func NewService(relayConfig *traffic.RelayOptions, trafficPlugins []traffic.Plugin) *Service
type ServiceOptions ¶ added in v0.3.0
type ServiceOptions struct {
Port int // The port that the relay service should listen on.
}
ServiceOptions contains configuration options for the relay network service.
See also traffic.RelayOptions, which provides options for the actual relay functionality.
func NewDefaultServiceOptions ¶ added in v0.3.0
func NewDefaultServiceOptions() *ServiceOptions
type TcpKeepAliveListener ¶
type TcpKeepAliveListener struct {
*net.TCPListener
}
Click to show internal directories.
Click to hide internal directories.