Documentation ¶
Index ¶
- type FeatureSet
- type Flags
- type ServicesInitFunc
- type TunnelRuntime
- func (runtime *TunnelRuntime) EventChannel() chan control.Event
- func (runtime *TunnelRuntime) ProcessEvents(event control.Event)
- func (runtime *TunnelRuntime) ReplaceExternalStatsService(svc *extstat.Service)
- func (runtime *TunnelRuntime) Restart() error
- func (runtime *TunnelRuntime) Start() error
- func (runtime *TunnelRuntime) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeatureSet ¶
func NewFeatureSet ¶
func NewFeatureSet() FeatureSet
func (FeatureSet) WithEventLog ¶
func (f FeatureSet) WithEventLog() bool
func (FeatureSet) WithFederation ¶
func (f FeatureSet) WithFederation() bool
func (FeatureSet) WithGRPC ¶
func (f FeatureSet) WithGRPC() bool
func (FeatureSet) WithGeoip ¶ added in v0.3.5
func (f FeatureSet) WithGeoip() bool
func (FeatureSet) WithIPRose ¶ added in v0.3.6
func (f FeatureSet) WithIPRose() bool
func (FeatureSet) WithProxy ¶ added in v0.3.8
func (f FeatureSet) WithProxy() bool
func (FeatureSet) WithPublicAPI ¶
func (f FeatureSet) WithPublicAPI() bool
type ServicesInitFunc ¶
type ServicesInitFunc func(runtime *TunnelRuntime) error
type TunnelRuntime ¶
type TunnelRuntime struct { SetLogLevel control.ChangeLevelFunc Events *control.EventManager Services *control.ServiceMap Settings *settings.Config Flags Flags Features FeatureSet // external stats tracker, // must not be nil, but may be backed by // the no-op reporting client ExternalStats *extstat.Service // must point to the http (NOT httpS) router instance HttpRouter chi.Router // contains filtered or unexported fields }
func New ¶
func New(static *settings.Config, starter ServicesInitFunc) *TunnelRuntime
func (*TunnelRuntime) EventChannel ¶
func (runtime *TunnelRuntime) EventChannel() chan control.Event
func (*TunnelRuntime) ProcessEvents ¶
func (runtime *TunnelRuntime) ProcessEvents(event control.Event)
func (*TunnelRuntime) ReplaceExternalStatsService ¶ added in v0.2.5
func (runtime *TunnelRuntime) ReplaceExternalStatsService(svc *extstat.Service)
func (*TunnelRuntime) Restart ¶
func (runtime *TunnelRuntime) Restart() error
func (*TunnelRuntime) Start ¶
func (runtime *TunnelRuntime) Start() error
func (*TunnelRuntime) Stop ¶
func (runtime *TunnelRuntime) Stop() error
Click to show internal directories.
Click to hide internal directories.