packettracing

package
v10.189.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsApplicationPacketTraced

func IsApplicationPacketTraced(direction TracingDirection) bool

IsApplicationPacketTraced checks if application

func IsNetworkPacketTraced

func IsNetworkPacketTraced(direction TracingDirection) bool

IsNetworkPacketTraced checks if network mode packet tracign is enabled

Types

type PacketEvent

type PacketEvent string

PacketEvent is string for our packet decision

const (
	PacketDropped  PacketEvent = "Dropped"
	PacketReceived PacketEvent = "Received"
	PacketSent     PacketEvent = "Transmitted"
)

Enum for all packetevents

type TracingDirection

type TracingDirection int

TracingDirection is used to configure the direction for which we want to trace packets

const (
	Disabled        TracingDirection = 0
	NetworkOnly     TracingDirection = 1
	ApplicationOnly TracingDirection = 2
	Invalid         TracingDirection = 4
)

TracingDirection enum all possible states

Jump to

Keyboard shortcuts

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