eventmanager

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConnectionStatus = "ConnectionStatus"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionState

type ConnectionState int
const (
	Ongoing ConnectionState = iota
	Complete
	Denied
	PeerDenied
)

type ConnectionStatusAttr

type ConnectionStatusAttr struct {
	ConnectionID    string // Unique ID to track a connection from start to end within the gateway
	SrcService      string // Source application/service initiating the connection
	DstService      string // Destination application/service receiving the connection
	IncomingBytes   int
	OutgoingBytes   int
	DestinationPeer string // The peer(gateway) where the destination/source service is located depending on the Direction
	StartTstamp     time.Time
	LastTstamp      time.Time
	Direction       Direction // Incoming/Outgoing
	State           ConnectionState
}

type Direction

type Direction int
const (
	Incoming Direction = iota
	Outgoing
)

Jump to

Keyboard shortcuts

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