invizory / netd Goto Github PK
View Code? Open in Web Editor NEW๐ netd is a lightweight library for building network daemons on Go.
License: MIT License
๐ netd is a lightweight library for building network daemons on Go.
License: MIT License
Server should be able to catch termination signals (SIGINT
, SIGTERM
) and then stop receiving incoming connections, gracefully waiting for the previous connections to close.
Like Echo
, Motd
and Pipe
.
We should provide shorthand function for booting that includes reasonable defaults and is suitable in most cases.
Possible example:
func main() {
boot.Main(echo.Echo{})
}
There should be a simple Server
that handles incoming connections using provided Backend
and logs network errors.
There should be a function that creates net.Listener
from address in the URI format.
Possible examples:
listen.URI("tcp:127.0.0.1:1337")
listen.URI("tcp:[::1]:1337")
listen.URI("unix:/tmp/netd.sock")
We should setup continuous integration, e.g. Travis.
We should have at least something like Backend
and Server
.
Server should notify service manager about start-up completion and other service status changes via sd-notify.
There should be an ability to store passed file descriptors in the service manager in order to continue operation after a service restart without losing state.
Related to #8.
There should be a function that creates net.Listener
from file descriptors passed by the system manager.
See sd_listen_fds
.
There should be a quick start guide in README.md
.
Maybe it is also a good idea to provide sample systemd unit files for service and socket.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.