Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bryopsida/go-background-svc-template
A template repository for a standalone background service.
https://github.com/bryopsida/go-background-svc-template
background-service badger go golang starter-template
Last synced: 27 days ago
JSON representation
A template repository for a standalone background service.
- Host: GitHub
- URL: https://github.com/bryopsida/go-background-svc-template
- Owner: bryopsida
- License: apache-2.0
- Created: 2024-08-17T18:45:18.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-28T17:00:57.000Z (2 months ago)
- Last Synced: 2024-08-28T18:44:27.043Z (2 months ago)
- Topics: background-service, badger, go, golang, starter-template
- Language: Go
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GO Background SVC Starter Template
## What is this?
This is a starter template intended for kick starting a simple background service.
It provides
1) A top level main that listens for SIGINT and SIGTERM and gracefully closes its database connection and signals to sub routines to exit
2) Has 2 go routines [increment](./incrementor/increment.go) and [print](./incrementor/print.go), that accept cancellation contexts
3) Has a simple embedded data store [badger](https://dgraph.io/docs/badger)
4) Has a starting point for configuration with a [interface wrapper](./config//config.go) around [viper](https://github.com/spf13/viper)
5) Has a [github workflow](https://github.com/curium-rocks/flows/blob/main/.github/workflows/golang.yml)
6) Has a [dev container](./.devcontainer/devcontainer.json)
7) Has a [Dockerfile](./Dockerfile)
8) Has a [Makefile](./Makefile) for common tasks such as building, testing, linting
9) Is automatically updated with renovate [renovate.json](./renovate.json)