counter

package
v0.1.76 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter atomic.Int64

func (*Counter) Add

func (c *Counter) Add(delta int64) (new int64)

func (*Counter) AddReader

func (c *Counter) AddReader(r io.Reader) io.Reader

func (*Counter) AddWriter

func (c *Counter) AddWriter(w io.Writer) io.Writer

func (*Counter) Load

func (c *Counter) Load() int64

type Listener

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

func NewListener

func NewListener(listener net.Listener) *Listener

func (*Listener) Accept

func (l *Listener) Accept() (net.Conn, error)

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

func (*Listener) Close

func (l *Listener) Close() error

func (*Listener) ReadCount

func (l *Listener) ReadCount() int64

func (*Listener) WriteCount

func (l *Listener) WriteCount() int64

Jump to

Keyboard shortcuts

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