stats

package
v3.0.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrDNSDecoded

func IncrDNSDecoded()

func IncrDNSDropped

func IncrDNSDropped()

func IncrDNSReceived

func IncrDNSReceived()

func IncrDNSRequest

func IncrDNSRequest()

func IncrDNSResponse

func IncrDNSResponse()

func IncrDNSTCPReceived

func IncrDNSTCPReceived()

func IncrDNSUDPReceived

func IncrDNSUDPReceived()

func IncrKafkaPublished

func IncrKafkaPublished()

func IncrPublishDropped

func IncrPublishDropped()

func IncrPublishReceived

func IncrPublishReceived()

func IncrSniffDropped

func IncrSniffDropped()

func IncrSniffTotalCaptured

func IncrSniffTotalCaptured()

Types

type DNS

type DNS struct {
	TotalReceived int64 `json:"total_received"`
	TCPReceived   int64 `json:"tcp_received"`
	UDPReceived   int64 `json:"udp_received"`
	Request       int64 `json:"request"`
	Response      int64 `json:"response"`
	Decoded       int64 `json:"decoded"`
	Dropped       int64 `json:"dropped"`
}

type Decode

type Decode struct {
	DNS DNS `json:"dns"`
}

type Publish

type Publish struct {
	TotalReceived  int64 `json:"total_received"`
	KafkaPublished int64 `json:"kafka_published"`
	Dropped        int64 `json:"dropped"`
}

type Sniff

type Sniff struct {
	TotalCaptured int64 `json:"total_captured"`
	Dropped       int64 `json:"dropped"`
}

type Statistics

type Statistics struct {
	Start   time.Time `json:"start_time"`
	End     time.Time `json:"end_time"`
	Sniff   Sniff     `json:"sniff"`
	Decode  Decode    `json:"decode"`
	Publish Publish   `json:"publish"`
}

Jump to

Keyboard shortcuts

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