socketsnapshot

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(globalConfig define.Config, taskConfig define.TaskConfig) define.Task

Types

type Event

type Event struct {
	// contains filtered or unexported fields
}

func (*Event) AsMapStr

func (e *Event) AsMapStr() common.MapStr

func (*Event) GetType

func (e *Event) GetType() string

func (*Event) IgnoreCMDBLevel

func (e *Event) IgnoreCMDBLevel() bool

type Gather

type Gather struct {
	tasks.BaseTask
	// contains filtered or unexported fields
}

func (*Gather) Run

func (g *Gather) Run(ctx context.Context, e chan<- define.Event)

type ProcSocket

type ProcSocket struct {
	Pid      int32  `json:"pid"`
	Protocol string `json:"protocol"`
	State    string `json:"state"`
	Saddr    string `json:"saddr"`
	Sport    uint32 `json:"sport"`
	Daddr    string `json:"daddr"`
	Dport    uint32 `json:"dport"`
	Family   string `json:"family"`
}

func AllProcsSocket

func AllProcsSocket(pids []int32, mode string) ([]ProcSocket, error)

Jump to

Keyboard shortcuts

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