inbound

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: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewForwardProtocol

func NewForwardProtocol(u *url.URL) *forwardProtocol

func NewH3Inbound

func NewH3Inbound(u *url.URL) *h3Inbound

func NewHttpProtocol

func NewHttpProtocol(u *url.URL) *httpProtocol

func NewL2TPInbound

func NewL2TPInbound(u *url.URL) *l2tpInbound

func NewMixProtocol

func NewMixProtocol(u *url.URL) *mixProtocol

func NewSocksProtocol

func NewSocksProtocol(u *url.URL) *socksProtocol

func NewTcpInbound

func NewTcpInbound(u *url.URL, protocol TcpProtocol, tp transport.InboundTransport) (*tcpInboundWrapper, error)

func NewTunInbound

func NewTunInbound(u *url.URL) (*tunInbound, error)

Types

type Inbound

type Inbound interface {
	Name() string
	Serve(r router.Router) error
}

func CreateInbound

func CreateInbound(u *url.URL) (Inbound, error)

type TcpProtocol

type TcpProtocol interface {
	Serve(l net.Listener, r router.Router) error
}

Jump to

Keyboard shortcuts

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