runtime

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureSet

type FeatureSet map[string]bool

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 Flags

type Flags struct {
	RestartRequired 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL