listen-unixdomainsocket

command
v0.0.0-...-fb49217 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 6 Imported by: 0

README

Listen UNIX Domain Socket

Usage

echo d /var/run/gopher 0755 `whoami` `whoami` - > /etc/tmpfiles.d/gopher.conf
systemd-tmpfiles --create /etc/tmpfiles.d/gopher.conf
systemctl daemon-reload

go run main.go &
echo -en 'GET / HTTP/1.0\r\n\r\n' | socat stdio UNIX-CONNECT:/var/run/gopher/go.sock

HTTP/1.0 200 OK
Date: Tue, 06 Sep 2016 16:45:16 GMT
Content-Length: 9
Content-Type: text/plain; charset=utf-8

It works!

License

The MIT License (MIT)

Author

Shintaro Kaneko kaneshin0120@gmail.com

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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