ingestserver

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnsMap

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

ConnsMap is used for tracking active connections.

func (*ConnsMap) Add

func (cm *ConnsMap) Add(c net.Conn) bool

Add adds c to cm.

func (*ConnsMap) CloseAll

func (cm *ConnsMap) CloseAll(shutdownDuration time.Duration)

CloseAll gradually closes all the cm conns with during the given shutdownDuration.

func (*ConnsMap) Delete

func (cm *ConnsMap) Delete(c net.Conn)

Delete deletes c from cm.

func (*ConnsMap) Init

func (cm *ConnsMap) Init(clientName string)

Init initializes cm.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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