Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Web is the service name for traffic ingressing through a proxy's web listener. Web = "web" // SSH is the service name for traffic ingressing through a proxy's ssh listener. SSH = "ssh" // Kube is the service name for traffic ingressing through a proxy's kube listener. Kube = "kube" // Tunnel is the service name for traffic ingressing through a proxy's reverse tunnel listener. Tunnel = "tunnel" // MySQL is the service name for traffic ingressing through a proxy's mysql listener. MySQL = "mysql" // Postgres is the service name for traffic ingressing through a proxy's postgres listener. Postgres = "postgres" // DatabaseTLS is the service name for traffic ingressing through a proxy's database tls listener. DatabaseTLS = "database_tls" )
Constants for each ingress service.
View Source
const ( // PathDirect is the ingress path for traffic that is accepted directly by a service listener. PathDirect = "direct" // PathALPN is the ingress path for traffic that is accepeted by the alpn listener. PathALPN = "alpn" // PathUnknown is the ingress path when no other path can be identified. PathUnknown = "unknown" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Reporter provides a simple interface for tracking connection ingress metrics.
func NewReporter ¶
NewReporter constructs a new ingress reporter.
func (*Reporter) AuthenticatedConnectionClosed ¶
AuthenticatedConnectionClosed reports a closed authenticated connection, this should only be called after ConnectionAuthenticated.
func (*Reporter) ConnectionAccepted ¶
ConnectionAccepted reports a new connection, ConnectionClosed must be called when the connection closes.
func (*Reporter) ConnectionAuthenticated ¶
ConnectionAuthenticated reports a new authenticated connection, AuthenticatedConnectionClosed must be called when the connection is closed.
Click to show internal directories.
Click to hide internal directories.