probe

package
v0.0.0-...-1b9eff4 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRandomSizes = []int{1, 8, 16, 32, 64, 128, 256, 512, 1024, 1400, 1500}

Functions

func CheckConnectivity

func CheckConnectivity(target string, timeout time.Duration) error

Types

type HTTP3Probe

type HTTP3Probe struct{}

func (*HTTP3Probe) Name

func (p *HTTP3Probe) Name() string

func (*HTTP3Probe) Run

func (p *HTTP3Probe) Run(ctx context.Context, target string) Result

type MalformedProbe

type MalformedProbe struct{}

func (*MalformedProbe) Name

func (p *MalformedProbe) Name() string

func (*MalformedProbe) Run

func (p *MalformedProbe) Run(ctx context.Context, target string) Result

type NullProbe

type NullProbe struct{}

func (*NullProbe) Name

func (p *NullProbe) Name() string

func (*NullProbe) Run

func (p *NullProbe) Run(ctx context.Context, target string) Result

type Probe

type Probe interface {
	Name() string
	Run(ctx context.Context, target string) Result
}

type RandomProbe

type RandomProbe struct {
	Sizes []int
}

func (*RandomProbe) Name

func (p *RandomProbe) Name() string

func (*RandomProbe) Run

func (p *RandomProbe) Run(ctx context.Context, target string) Result

type ReplayProbe

type ReplayProbe struct{}

func (*ReplayProbe) Name

func (p *ReplayProbe) Name() string

func (*ReplayProbe) Run

func (p *ReplayProbe) Run(ctx context.Context, target string) Result

type Result

type Result struct {
	ProbeName string
	Target    string

	Connected   bool
	ConnectTime time.Duration

	GotAppData   bool
	AppDataSize  int
	ResponseTime time.Duration

	ClosedBy       string
	CloseErrorType string
	CloseCode      uint64
	CloseReason    string

	HTTPStatus  int
	HTTPHeaders map[string]string

	TLSVersion  uint16
	CipherSuite uint16
	ALPN        string
	CertSubject string
	CertIssuer  string
	CertExpiry  string
	HasECH      bool

	RawResponse []byte

	Err error
}

func RunWithTimeout

func RunWithTimeout(p Probe, target string, timeout time.Duration) Result

type TLSProbe

type TLSProbe struct{}

func (*TLSProbe) Name

func (p *TLSProbe) Name() string

func (*TLSProbe) Run

func (p *TLSProbe) Run(ctx context.Context, target string) Result

Jump to

Keyboard shortcuts

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