- Go 89.7%
- Makefile 5.7%
- Dockerfile 2.9%
- Go Template 1.7%
| .forgejo/workflows | ||
| api | ||
| cmd/dispatch-management-process | ||
| helm | ||
| internal | ||
| .dockerignore | ||
| Dockerfile | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
dispatch-management-process
The management component of the verzenddienst in Notificatie voor Burgers. It builds the overview for
the management screen (dispatch-management-ui) from dispatch-service and only reads. It is a
component of its own, apart from dispatch-process, so management never reaches the business logic.
Internal only: it has its own Service, and the management UI's proxy is its only way in. Public for now through that proxy, because there is no authorisation yet.
API
Dutch, OpenAPI 3.1, following the NL API Design Rules. The source is api/openapi.yaml;
api/openapi.json is generated from it and committed (npx -y js-yaml@4 api/openapi.yaml > api/openapi.json).
Both are served as they are at /v1/openapi.json and /v1/openapi.yaml.
GET /v1/overzicht→{rol: verzenddienst, toegelatenAfzenders, zendingenPerAfzenderVandaag, recenteGebeurtenissen: [{tijdstip, afzender, bezorgdienst, resultaat, envelopGrootte}]}
Never anything about the recipient: the verzenddienst knows the sender, not who a shipment is for.
Configuration
DISPATCH_SERVICE_URL: the data layer, defaulthttp://dispatch-serviceDISPATCH_SERVICE_API_KEY: this component's service key, from the Secretdispatch-api-keys(keyDISPATCH_MANAGEMENT_PROCESS_API_KEY)
Development
go test ./...
golangci-lint run ./...
CI
.forgejo/workflows/ci.yml tests and lints every push and pull request, checks that openapi.json
matches openapi.yaml, lints the spec with Redocly and the ADR checker, lints the chart and on main
pushes the image code.digitaledienst.overheid.nl/mijn-betaaloverzicht/dispatch-management-process:<commit>.
Release
make release VERSION=1.2.3 # on an up-to-date main: writes helm/Chart.yaml, commits, tags v1.2.3
git push --follow-tags
The tag pipeline tags the image 1.2.3 and v1.2.3 and publishes the chart at 1.2.3 to the
Forgejo Helm registry (see the charts repository). The environments repository pins that
version.
License
EUPL-1.2, see LICENSE.