package activation
import "github.com/coreos/go-systemd/v22/activation"
Index ¶
- func Files(unsetEnv bool) []*os.File
- func Listeners() ([]net.Listener, error)
- func ListenersWithNames() (map[string][]net.Listener, error)
- func PacketConns() ([]net.PacketConn, error)
- func TLSListeners(tlsConfig *tls.Config) ([]net.Listener, error)
- func TLSListenersWithNames(tlsConfig *tls.Config) (map[string][]net.Listener, error)
Functions ¶
func Files ¶
func Listeners ¶
Listeners returns a slice containing a net.Listener for each matching socket type passed to this process.
The order of the file descriptors is preserved in the returned slice. Nil values are used to fill any gaps. For example if systemd were to return file descriptors corresponding with "udp, tcp, tcp", then the slice would contain {nil, net.Listener, net.Listener}
func ListenersWithNames ¶
ListenersWithNames maps a listener name to a set of net.Listener instances.
func PacketConns ¶
func PacketConns() ([]net.PacketConn, error)
PacketConns returns a slice containing a net.PacketConn for each matching socket type passed to this process.
The order of the file descriptors is preserved in the returned slice. Nil values are used to fill any gaps. For example if systemd were to return file descriptors corresponding with "udp, tcp, udp", then the slice would contain {net.PacketConn, nil, net.PacketConn}
func TLSListeners ¶
TLSListeners returns a slice containing a net.listener for each matching TCP socket type passed to this process. It uses default Listeners func and forces TCP sockets handlers to use TLS based on tlsConfig.
func TLSListenersWithNames ¶
TLSListenersWithNames maps a listener name to a net.Listener with the associated TLS configuration.
Source Files ¶
files_windows.go listeners.go packetconns.go
- Version
- v22.3.2
- Published
- May 3, 2021
- Platform
- windows/amd64
- Imports
- 3 packages
- Last checked
- 1 hour ago –
Tools for package owners.