conn

package
v0.0.0-...-2a54439 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 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 Connections

type Connections struct {
	ConnectionsByCode map[string]int `json:"connections_by_code"`
}

Type Connections stores map of active connections: country code -> number of connections.

func (*Connections) GetActiveConnections

func (c *Connections) GetActiveConnections(blackList map[string]bool)

Function GetActiveConnections retrieves active TCP connections.

func (*Connections) RunJob

func (c *Connections) RunJob(p *Params)

Function RunJob retrieves active TCP connections.

type Params

type Params struct {
	UseWg     bool
	Wg        *sync.WaitGroup
	BlackList map[string]bool
}

Type Params stores parameters.

Jump to

Keyboard shortcuts

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