tracer

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Workers = 5

Variables

This section is empty.

Functions

func Init

func Init(strategy Strategy) *tracer

Types

type Event

type Event struct {
	DateTime        string
	RemoteAddr      string
	Protocol        string
	Command         string
	CommandOutput   string
	Status          string
	Msg             string
	ID              string
	Environ         string
	User            string
	Password        string
	Client          string
	Headers         string
	Cookies         string
	UserAgent       string
	HostHTTPRequest string
	Body            string
	HTTPMethod      string
	RequestURI      string
	Description     string
}

type Protocol

type Protocol int
const (
	HTTP Protocol = iota
	SSH
	TCP
)

func (Protocol) String

func (status Protocol) String() string

type Status

type Status int
const (
	Start Status = iota
	End
	Stateless
	Interaction
)

func (Status) String

func (status Status) String() string

type Strategy

type Strategy func(event Event)

type Tracer

type Tracer interface {
	TraceEvent(event Event)
}

Jump to

Keyboard shortcuts

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