dialer

package
v0.0.0-...-e5d0cd3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnexpectedFieldErr  = fmt.Errorf("unexpected field")
	InvalidParameterErr = fmt.Errorf("invalid parameters")
)

Functions

func FromLinkRegister

func FromLinkRegister(name string, creator FromLinkCreator)

Types

type ExtraOption

type ExtraOption struct {
	AllowInsecure     bool
	TlsImplementation string
	UtlsImitate       string
}

type FromLinkCreator

type FromLinkCreator func(gOption *ExtraOption, nextDialer netproxy.Dialer, link string) (dialer netproxy.Dialer, property *Property, err error)

type Property

type Property struct {
	Name     string
	Address  string
	Protocol string
	Link     string
}

func NewBlockDialer

func NewBlockDialer(option *ExtraOption, dialCallback func()) (netproxy.Dialer, *Property)

func NewDirectDialer

func NewDirectDialer(option *ExtraOption, fullcone bool) (netproxy.Dialer, *Property)
func NewNetproxyDialerFromLink(d netproxy.Dialer, gOption *ExtraOption, link string) (netproxy.Dialer, *Property, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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