https://github.com/karpeleslab/gosd
golang utils for handling sd api (notify socket, etc)
https://github.com/karpeleslab/gosd
Last synced: 12 months ago
JSON representation
golang utils for handling sd api (notify socket, etc)
- Host: GitHub
- URL: https://github.com/karpeleslab/gosd
- Owner: KarpelesLab
- License: mit
- Created: 2022-09-26T03:32:14.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-09-26T03:46:28.000Z (over 3 years ago)
- Last Synced: 2025-07-01T00:09:02.069Z (12 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://godoc.org/github.com/KarpelesLab/gosd)
# gosd
Notify & stuff for go.
## Usage
```go
sd := gosd.New()
// once your daemon is ready:
sd.Ready()
// on shutdown
sd.Notify(gosd.StoppingState)
```