loader

package
v0.73.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package loader contains initialization logic shared with the trace-loader process

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFDFromListener

func GetFDFromListener(ln net.Listener) (uintptr, error)

GetFDFromListener returns a file descriptor for the given listener.

It duplicates the underlying file descriptor so that it's still valid when the file is closed or garbage collected. The returned file descriptor can be passed to child processes using the exec syscall.

func GetListenerFromFD

func GetListenerFromFD(fdStr string, name string) (net.Listener, error)

GetListenerFromFD creates a new net.Listener from a file descriptor

Under the hood the file descriptor will be dupped to be used by the Go runtime The file descriptor from the string will be closed

func GetTCPListener

func GetTCPListener(addr string) (net.Listener, error)

GetTCPListener returns a net.Listener listening on the given TCP address.

func GetUnixListener

func GetUnixListener(path string) (net.Listener, error)

GetUnixListener returns a net.Listener listening on the given "unix" socket path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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