Socket
Socket
Sign inDemoInstall

blitiri.com.ar/go/systemd

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    blitiri.com.ar/go/systemd

Package systemd implements a way to get network listeners from systemd, similar to C's sd_listen_fds(3) and sd_listen_fds_with_names(3).


Version published

Readme

Source

blitiri.com.ar/go/systemd

GoDoc Build Status

systemd is a Go package implementing a way to get network listeners from systemd, similar to C's sd_listen_fds() and sd_listen_fds_with_names() (man).

Supports named file descriptors, which is useful if your daemon needs to be able to tell the different ports apart (e.g. http vs https).

It is used by daemons such as chasquid to listen on privileged ports without needing to run as root.

Example

listeners, err := systemd.Listeners()
for _, l := range listeners["service.socket"] {
	go serve(l)
}

Status

The API should be considered stable, and no backwards-incompatible changes are expected.

Contact

If you have any questions, comments or patches please send them to albertito@blitiri.com.ar.

FAQs

Last updated on 28 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc