Documentation ¶
Index ¶
- Constants
- func ToPtr[T any](in T) *T
- type Factory
- func (self *Factory) BindChannel(binding channel.Binding) error
- func (self *Factory) CreateDialer(optionsData xgress.OptionsData) (xgress.Dialer, error)
- func (self *Factory) CreateListener(optionsData xgress.OptionsData) (xgress.Listener, error)
- func (self *Factory) DefaultRequestTimeout() time.Duration
- func (self *Factory) Enabled() bool
- func (self *Factory) GetTraceDecoders() []channel.TraceMessageDecoder
- func (self *Factory) LoadConfig(map[interface{}]interface{}) error
- func (self *Factory) NotifyOfReconnect(channel.Channel)
- func (self *Factory) Run(env env.RouterEnv) error
- type Options
Constants ¶
View Source
const ( DefaultMode = "tproxy" DefaultServicePollRate = 15 * time.Second DefaultDnsResolver = "udp://127.0.0.1:53" DefaultDnsServiceIpRange = "100.64.0.1/10" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory(env env.RouterEnv, routerConfig *router.Config, stateManager fabric.StateManager) *Factory
NewFactory constructs a new Edge Xgress Tunnel Factory instance
func (*Factory) BindChannel ¶
func (*Factory) CreateDialer ¶
CreateDialer creates a new Edge Xgress dialer
func (*Factory) CreateListener ¶
CreateListener creates a new Edge Tunnel Xgress listener
func (*Factory) DefaultRequestTimeout ¶
func (*Factory) GetTraceDecoders ¶
func (self *Factory) GetTraceDecoders() []channel.TraceMessageDecoder
func (*Factory) LoadConfig ¶
func (*Factory) NotifyOfReconnect ¶
func (self *Factory) NotifyOfReconnect(channel.Channel)
Click to show internal directories.
Click to hide internal directories.