validator

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

func NewValidator

func NewValidator() *Validator

func NewValidatorWithOptions added in v1.3.0

func NewValidatorWithOptions(timeout, tcpTimeout time.Duration, skipTCPCheck bool) *Validator

NewValidatorWithOptions creates validator with custom options

func (*Validator) ValidateAndDetectType added in v1.3.0

func (v *Validator) ValidateAndDetectType(p *proxy.Proxy) (*proxy.Proxy, bool)

ValidateAndDetectType validates proxy and automatically detects its type

func (*Validator) ValidateProxy

func (v *Validator) ValidateProxy(p *proxy.Proxy) bool

Jump to

Keyboard shortcuts

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