tunnelstate

package
v0.0.0-...-455eedf Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 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 {
	sync.RWMutex
	// contains filtered or unexported fields
}

func MockedConnTracker

func MockedConnTracker(mocked map[uint8]ConnectionInfo) *ConnTracker

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