redirect

package
v1.11.0-alpha.24 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedirect

func NewRedirect(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.RedirectInboundOptions) (adapter.Inbound, error)

func NewTProxy

func NewTProxy(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.TProxyInboundOptions) (adapter.Inbound, error)

func RegisterRedirect

func RegisterRedirect(registry *inbound.Registry)

func RegisterTProxy

func RegisterTProxy(registry *inbound.Registry)

Types

type Redirect

type Redirect struct {
	inbound.Adapter
	// contains filtered or unexported fields
}

func (*Redirect) Close

func (h *Redirect) Close() error

func (*Redirect) NewConnectionEx

func (h *Redirect) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)

func (*Redirect) Start

func (h *Redirect) Start(stage adapter.StartStage) error

type TProxy

type TProxy struct {
	inbound.Adapter
	// contains filtered or unexported fields
}

func (*TProxy) Close

func (t *TProxy) Close() error

func (*TProxy) NewConnectionEx

func (t *TProxy) NewConnectionEx(ctx context.Context, conn net.Conn, metadata adapter.InboundContext, onClose N.CloseHandlerFunc)

func (*TProxy) NewPacketConnectionEx

func (t *TProxy) NewPacketConnectionEx(ctx context.Context, conn N.PacketConn, source M.Socksaddr, destination M.Socksaddr, onClose N.CloseHandlerFunc)

func (*TProxy) NewPacketEx

func (t *TProxy) NewPacketEx(buffer *buf.Buffer, oob []byte, source M.Socksaddr)

func (*TProxy) Start

func (t *TProxy) Start(stage adapter.StartStage) error

Jump to

Keyboard shortcuts

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