outbound

package
v0.0.0-...-3139442 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Http2DefaultConcurrency = 8
	Http2MaxConcurrency     = 100
	Http2DefaultAliveTime   = 0
	Http2RequestTimeOut     = 5 * time.Second
)

Variables

This section is empty.

Functions

func NewDirectOutbound

func NewDirectOutbound(resolver dns.Resolver) *directOutbound

func NewHttp2Outbound

func NewHttp2Outbound(u *url.URL, tp transport.OutboundTransport) (*h2Outbound, error)

func NewHttp3Outbound

func NewHttp3Outbound(u *url.URL) (*h3Outbound, error)

func NewHttpOutbound

func NewHttpOutbound(u *url.URL, tp transport.OutboundTransport) (*httpOutbound, error)

func NewSocksOutbound

func NewSocksOutbound(u *url.URL, tp transport.OutboundTransport) (*socksOutbound, error)

Types

type Outbound

type Outbound interface {
	Name() string
	RemoteDNS() bool
	DialTcp(targetAddr string) (net.Conn, error)
}

func CreateOutbound

func CreateOutbound(u *url.URL, resolver dns.Resolver) (Outbound, error)

Jump to

Keyboard shortcuts

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