Documentation
¶
Overview ¶
Package loader contains initialization logic shared with the trace-loader process
Index ¶
- func GetConnFromFD(fdStr string, name string) (net.Conn, error)
- func GetFDFromListener(ln net.Listener) (uintptr, error)
- func GetListenerFromFD(fdStr string, name string) (net.Listener, error)
- func GetTCPListener(addr string) (net.Listener, error)
- func GetUnixListener(path string) (net.Listener, error)
- func MakeExecutable(fd uintptr) error
- func NewListenerInitialConn(inner net.Listener, initialConn net.Conn) net.Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnFromFD ¶
GetConnFromFD creates a new net.Conn 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 if it is valid
func GetFDFromListener ¶
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 ¶
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 if it is valid
func GetTCPListener ¶
GetTCPListener returns a net.Listener listening on the given TCP address.
func GetUnixListener ¶
GetUnixListener returns a net.Listener listening on the given "unix" socket path.
func MakeExecutable ¶
MakeExecutable updates a file descriptor so that it can be passed to child processes using the exec syscall.
Types ¶
This section is empty.