package
18.0.0-dev.vnet-windows.4+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev
# Functions
NewMonitor creates an unstarted [Monitor] with the provided configuration.
NewSSHPinger creates a new [SSHPinger] with the provided configuration.
NewWebsocketPinger creates a [WebSocketPinger] with the provided configuration.
# Structs
Monitor periodically pings both legs of a proxied connection and records the round trip times so that they may be emitted to consumers.
MonitorConfig provides required dependencies for the [Monitor].
SSHPinger is a [Pinger] implementation that measures the latency of an SSH connection.
Statistics contain latency measurements for both legs of a proxied connection.
WebSocketPinger is a [Pinger] implementation that measures the latency of a websocket connection.
# Interfaces
Pinger abstracts the mechanism used to measure the round trip time of a connection.
Reporter is an abstraction over how to provide the latency statistics to the consumer.
SSHClient is the subset of the [ssh.Client] required by the [SSHPinger].
WebSocket is the subset of [websocket.Conn] required by the [WebSocketPinger].
# Type aliases
ReporterFunc type is an adapter to allow the use of ordinary functions as a Reporter.