connections

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	Context() context.Context
	CheckExpirations(now time.Time)
	Close() error
	RemoteAddr() net.Addr
}

type Connections

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

func New

func New() *Connections

func (*Connections) CheckExpirations

func (c *Connections) CheckExpirations(now time.Time)

func (*Connections) Close

func (c *Connections) Close()

func (*Connections) Delete

func (c *Connections) Delete(conn Connection)

func (*Connections) Store

func (c *Connections) Store(conn Connection)

Jump to

Keyboard shortcuts

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