Help us shape the future of Go! Take the 2026 Go Developer Survey

sockets

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: MIT Imports: 8 Imported by: 22

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