conntrack

package
v0.0.0-...-8938f7c Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2015 License: MIT Imports: 11 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 struct {
	Transfer
	SrcIp   string `json:"src_ip"`
	SrcPort uint16 `json:"src_port"`
	DstIp   string `json:"dst_ip"`
	DstPort uint16 `json:"dst_port"`
}

type Provider

type Provider interface {
	Totals() (*Totals, error)

	Records() ([]*Record, error)
}

func NewProvider

func NewProvider(config *config.ContrackConfig, parent logging.Logger) (Provider, error)

type Record

type Record struct {
	Protocol string     `json:"protocol"`
	Ttl      uint64     `json:"ttl"`
	State    string     `json:"state"`
	Send     Connection `json:"send"`
	Receive  Connection `json:"receive"`
	Key      string     `json:"key"`
}

Conntrack record Resembles a single tracked connection

type Totals

type Totals struct {
	Send    Transfer `json:"send"`
	Receive Transfer `json:"receive"`
}

type Transfer

type Transfer struct {
	Packets uint64 `json:"packets"`
	Bytes   uint64 `json:"bytes"`
}

Jump to

Keyboard shortcuts

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