activation

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package activation provides utilities for inheriting listening sockets from systemd, einhorn, socketmaster, and crank.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DaemonReady

func DaemonReady() (err error)

DaemonReady signals to a parent init system or daemon manager that the daemon is finished starting up. Use after all listening sockets have been opened.

func GetListener

func GetListener(index uint, family, laddr string) (listener net.Listener, err error)

GetListener checks if a daemon manager has passed a pre-activated listener socket. If not, then net.Listener is used to open a new one. index starts at 0 and increments for each additional socket being inherited.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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