handlerfactory

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerFactory

type HandlerFactory struct {
	DialerFactory               transport.DialerFactory
	Policy                      *policy.Policy
	IPResolver                  i.IPResolver
	IPResolverForRequestAddress i.IPResolver
	EchResolver                 i.ECHResolver
	Hysteria2RejectQuic         bool
	HandlerLinkStats            bool
	HandlerMeter                bool
	OutStats                    *outboundstats.OutStats
	TotalUpCounter              *atomic.Uint64
	TotalDownCounter            *atomic.Uint64
}

func (*HandlerFactory) CreateHandler

func (c *HandlerFactory) CreateHandler(hs ...*configs.HandlerConfig) (i.Outbound, error)

type StatsOutbound

type StatsOutbound struct {
	i.Outbound
	// contains filtered or unexported fields
}

func (*StatsOutbound) HandleFlow

func (s *StatsOutbound) HandleFlow(ctx context.Context,
	dst net.Destination, rw buf.ReaderWriter) error

func (*StatsOutbound) HandlePacketConn

func (s *StatsOutbound) HandlePacketConn(ctx context.Context,
	dst net.Destination, pc udp.PacketReaderWriter) error

func (*StatsOutbound) Support6

func (s *StatsOutbound) Support6() bool

Jump to

Keyboard shortcuts

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