activation

package
Version: v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package activation implements primitives for systemd socket activation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Files

func Files(unsetEnv bool) []*os.File

func Listeners

func Listeners(unsetEnv bool) ([]net.Listener, error)

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 PacketConns added in v0.8.1

func PacketConns(unsetEnv bool) ([]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}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL