MCPcopy
hub / github.com/passteque/gluetun / Loop

Struct Loop

internal/vpn/loop.go:15–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13)
14
15type Loop struct {
16 statusManager *loopstate.State
17 state *state.State
18 providers Providers
19 storage Storage
20 healthSettings settings.Health
21 healthChecker HealthChecker
22 healthServer HealthServer
23 // Fixed parameters
24 buildInfo models.BuildInformation
25 versionInfo bool
26 ipv6Supported bool
27 vpnInputPorts []uint16 // TODO make changeable through stateful firewall
28 // Configurators
29 openvpnConf OpenVPN
30 netLinker NetLinker
31 fw Firewall
32 routing Routing
33 portForward PortForward
34 publicip PublicIPLoop
35 dnsLooper DNSLoop
36 // Other objects
37 starter CmdStarter // for OpenVPN
38 logger log.LoggerInterface
39 client *http.Client
40 // Internal channels and values
41 stop <-chan struct{}
42 stopped chan<- struct{}
43 start <-chan struct{}
44 running chan<- models.LoopStatus
45 userTrigger bool
46 // Internal constant values
47 backoffTime time.Duration
48}
49
50const (
51 defaultBackoffTime = 15 * time.Second

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected