conn

package
v0.0.0-...-39278d5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyLoggingErrors

func CopyLoggingErrors(ctx context.Context, dst io.Writer, src io.Reader) error

func CreateUnixConnProxy

func CreateUnixConnProxy(ctx context.Context, conn net.Conn) (*net.UnixConn, error)

func CreateUnixFileProxy

func CreateUnixFileProxy(ctx context.Context) (string, *net.UnixConn, error)

func DebugCopy

func DebugCopy(ctx context.Context, name string, w io.Writer, r io.Reader) (done chan error)

func DebugCopyWithBuffer

func DebugCopyWithBuffer(ctx context.Context, name string, w io.Writer, r io.Reader, buffer []byte) (done chan error)

func ListenAndAcceptSingleNetConn

func ListenAndAcceptSingleNetConn(ctx context.Context, listenerCallback func(ctx context.Context) (net.Listener, error), dialCallback func(ctx context.Context) error) (net.Conn, error)

func NewCountReader

func NewCountReader(r io.Reader) io.ReadCloser

func NewCountWriter

func NewCountWriter(w io.WriteCloser) io.WriteCloser

func NewDebugReader

func NewDebugReader(ctx context.Context, name string, r io.Reader) io.Reader

func NewDebugWriter

func NewDebugWriter(ctx context.Context, name string, w io.Writer) io.Writer

Types

type FileReader

type FileReader interface {
	Fd() uintptr
	io.ReadCloser
}

func OsPipeProxyReader

func OsPipeProxyReader(ctx context.Context, name string, r io.ReadCloser) (FileReader, []io.Closer)

type FileWriter

type FileWriter interface {
	Fd() uintptr
	io.WriteCloser
}

func OsPipeProxyWriter

func OsPipeProxyWriter(ctx context.Context, name string, w io.WriteCloser) (FileWriter, []io.Closer)

Jump to

Keyboard shortcuts

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