Documentation ¶
Index ¶
- type DirectBackWriter
- type Handlerdeprecated
- type Service
- func (s *Service[T]) NewContextPacket(ctx context.Context, key T, buffer *buf.Buffer, metadata M.Metadata, ...)deprecated
- func (s *Service[T]) NewContextPacketEx(ctx context.Context, key T, buffer *buf.Buffer, source M.Socksaddr, ...)
- func (s *Service[T]) NewPacket(ctx context.Context, key T, buffer *buf.Buffer, metadata M.Metadata, ...)deprecated
- func (s *Service[T]) NewPacketDirect(ctx context.Context, key T, conn N.PacketConn, buffer *buf.Buffer, ...)deprecated
- func (s *Service[T]) NewPacketEx(ctx context.Context, key T, buffer *buf.Buffer, source M.Socksaddr, ...)
- func (s *Service[T]) WriteIsThreadUnsafe()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirectBackWriter ¶
type DirectBackWriter struct { Source N.PacketConn Nat N.PacketConn }
func (*DirectBackWriter) Upstream ¶
func (w *DirectBackWriter) Upstream() any
func (*DirectBackWriter) WritePacket ¶
type Handler
deprecated
type Handler interface { N.UDPConnectionHandler E.Handler }
Deprecated: Use N.UDPConnectionHandler instead.
type Service ¶
type Service[K comparable] struct { // contains filtered or unexported fields }
func New
deprecated
func New[K comparable](maxAge int64, handler Handler) *Service[K]
Deprecated: Use NewEx instead.
func NewEx ¶
func NewEx[K comparable](maxAge int64, handler N.UDPConnectionHandlerEx) *Service[K]
func (*Service[T]) NewContextPacket
deprecated
func (*Service[T]) NewContextPacketEx ¶
func (*Service[T]) NewPacketDirect
deprecated
func (*Service[T]) NewPacketEx ¶
func (*Service[T]) WriteIsThreadUnsafe ¶
func (s *Service[T]) WriteIsThreadUnsafe()
Click to show internal directories.
Click to hide internal directories.