collector

package
v7.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	GetTCPv4Connections() ([]*common.ConnectionStats, error)
	GetTCPv6Connections() ([]*common.ConnectionStats, error)
	GetUDPv4Connections() ([]*common.ConnectionStats, error)
	GetUDPv6Connections() ([]*common.ConnectionStats, error)
}

type Response

type Response struct {
	Connections []*common.ConnectionStats
	Error       error
}

TODO: Convert collector to use Response

func (*Response) AndThen

func (res *Response) AndThen(f func() *Response) *Response

Jump to

Keyboard shortcuts

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