connect

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package connect defines the event source of network connection events on linux.

Index

Constants

View Source
const (
	OpConnectStart = Op(iota)
	OpConnectEnd
)

Variables

View Source
var Module = shaft.Stack(stackConnectEventSource)

Module is the DI module of connect event.

The module requires a context and a trace manager, and injects an event channel of <-chan Event.

Functions

This section is empty.

Types

type Event

type Event struct {
	Op        Op
	PID       uint32
	Timestamp time.Time
	FD        int
	Errno     *int32
	Family    uint16
	Type      uint16
	Addr      string
	FlowInfo  *uint32
	Scope     *uint32
	Port      uint16
}

Event is the generated event of this module.

type Op

type Op uint8

Op is the event op of connect event.

Jump to

Keyboard shortcuts

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