types

package
v0.2.213 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const MaxGroupedEventSize int = 10000

Variables

View Source
var ConsistentHeaders = []string{
	"Accept-Encoding",
	"Accept-Language",
	"Connection",
	"Host",
	"Upgrade-Insecure-Requests",
}

Functions

func GetColumns

func GetColumns() *columns.Columns[Event]

func GetPacketDirection

func GetPacketDirection(syscall string) (consts.NetworkDirection, error)

func IsInternal

func IsInternal(ip string) bool

Types

type Event

type Event struct {
	eventtypes.Event
	eventtypes.WithMountNsID
	Pid       uint32                  `json:"pid,omitempty" column:"pid,template:pid"`
	Uid       uint32                  `json:"uid,omitempty" column:"uid,template:uid"`
	Gid       uint32                  `json:"gid,omitempty" column:"gid,template:gid"`
	OtherPort uint16                  `json:"other_port,omitempty" column:"other_port,template:other_port"`
	OtherIp   string                  `json:"other_ip,omitempty" column:"other_ip,template:other_ip"`
	Internal  bool                    `json:"internal,omitempty" column:"internal,template:internal"`
	Direction consts.NetworkDirection `json:"direction,omitempty" column:"direction,template:direction"`
	Request   *http.Request
	Response  *http.Response
}

func Base

func Base(ev eventtypes.Event) *Event

type HTTPDataType added in v0.2.154

type HTTPDataType int
const (
	Request  HTTPDataType = 2
	Response HTTPDataType = 3
)

type HTTPPacket added in v0.2.154

type HTTPPacket interface {
}

Jump to

Keyboard shortcuts

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