checker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectLocalIP

func DetectLocalIP(ctx context.Context, target model.Target, timeout time.Duration) string

func Evaluate

func Evaluate(ctx context.Context, tasks []Task, opts Options) []model.CheckRecord

Types

type Options

type Options struct {
	Workers          int
	ConnectTimeout   time.Duration
	RequestTimeout   time.Duration
	MinPass          int
	MaxLatency       time.Duration
	StabilityRetries int
	StabilityGap     time.Duration
	Verbose          bool
	Targets          []model.Target
	LocalIP          string
	Mode             string
}

type Task

type Task struct {
	ProxyURL    string
	SourceHits  int
	Scheme      string
	SourceScore float64
}

Jump to

Keyboard shortcuts

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