tunnelstate

package
v0.0.0-...-31b9ebf Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnTracker

type ConnTracker struct {
	// contains filtered or unexported fields
}

func NewConnTracker

func NewConnTracker(
	log *zerolog.Logger,
) *ConnTracker

func (*ConnTracker) CountActiveConns

func (ct *ConnTracker) CountActiveConns() uint

func (*ConnTracker) HasConnectedWith

func (ct *ConnTracker) HasConnectedWith(protocol connection.Protocol) bool

HasConnectedWith checks if we've ever had a successful connection to the edge with said protocol.

func (*ConnTracker) OnTunnelEvent

func (ct *ConnTracker) OnTunnelEvent(c connection.Event)

type ConnectionInfo

type ConnectionInfo struct {
	IsConnected bool
	Protocol    connection.Protocol
}

Jump to

Keyboard shortcuts

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