types

package
v0.2.147 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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(event *Event) (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"`
	Syscall   string   `json:"syscall,omitempty" column:"syscall,template:syscall"`
	HttpData  HTTPData `json:"headers,omitempty" column:"headers,template:headers"`
}

func Base

func Base(ev eventtypes.Event) *Event

type HTTPData

type HTTPData interface {
}

type HTTPRequestData

type HTTPRequestData struct {
	Method  string
	URL     string
	Headers http.Header
}

type HTTPResponseData

type HTTPResponseData struct {
	StatusCode int
	Status     string
	Headers    http.Header
}

Jump to

Keyboard shortcuts

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