sockets

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 8 Imported by: 20

README

go-socket-activation

Coverage Status Travis CI Discourse posts

A library for creating socket-activated processes.

This library provides access to sockets registered by the system's init daemon. See: http://0pointer.de/blog/projects/socket-activation.html for details.

At the moment, this library only supports systemd.

Table of Contents

Install

go get -u github.com/libp2p/go-socket-activation

Usage

Contribute

PRs are welcome!

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © 2019 Protocol Labs

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListListeners

func ListListeners() ([]string, error)

ListListeners lists the names of the available listeners.

func ListPacketConns

func ListPacketConns() ([]string, error)

ListListeners lists the names of the available packet connections.

func TakeListeners

func TakeListeners(name string) ([]manet.Listener, error)

TakeSockets takes the listeners associated with the given name.

func TakePacketConns

func TakePacketConns(name string) ([]manet.PacketConn, error)

TakePacketConns takes the packet connections associated with the given name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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