connctr

package
v1.1.0-experimental Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

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

T represents an active connection counter. It is supposed to be set as a state change listener to an http.Server.

func New

func New() *T

New returns a new connection counter instance

func (*T) Counts

func (c *T) Counts() conntracker.ConnectionStats

Counts implements conntracker.ConnectionTracker.

func (*T) RegisterStateChange

func (c *T) RegisterStateChange(conn net.Conn, prev http.ConnState, cur http.ConnState)

RegisterStateChange implements conntracker.ConnectionTracker.

Jump to

Keyboard shortcuts

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