internal

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnToPacketConn

func ConnToPacketConn(conn net.Conn) net.PacketConn

ConnToPacketConn wraps around a dialed UDP connection. Its only purpose is to wrap around WriteTo and make it call Write instead, because WriteTo is invalid on a dialed connection.

Types

type DiscardHandler

type DiscardHandler struct{}

DiscardHandler implements a slog.Handler that is always disabled. Each of its methods return immediately without any code running.

func (DiscardHandler) Enabled

func (DiscardHandler) Handle

func (DiscardHandler) WithAttrs

func (d DiscardHandler) WithAttrs([]slog.Attr) slog.Handler

func (DiscardHandler) WithGroup

func (d DiscardHandler) WithGroup(string) slog.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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