Introduce health checking functionality with liveness and readiness endpoints to monitor the application's status. Implement a health checker that verifies database connectivity and provides a simple liveness check. Update service routing to use the new health checker functionality. Add corresponding unit tests for validation.
80 lines
3.3 KiB
AMPL
80 lines
3.3 KiB
AMPL
module gitlab.com/unboundsoftware/schemas
|
|
|
|
go 1.25
|
|
|
|
require (
|
|
github.com/99designs/gqlgen v0.17.83
|
|
github.com/DATA-DOG/go-sqlmock v1.5.2
|
|
github.com/Khan/genqlient v0.8.1
|
|
github.com/alecthomas/kong v1.13.0
|
|
github.com/apex/log v1.9.0
|
|
github.com/auth0/go-jwt-middleware/v2 v2.3.0
|
|
github.com/golang-jwt/jwt/v5 v5.3.0
|
|
github.com/google/uuid v1.6.0
|
|
github.com/jmoiron/sqlx v1.4.0
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/pressly/goose/v3 v3.26.0
|
|
github.com/rs/cors v1.11.1
|
|
github.com/sparetimecoders/goamqp v0.3.3
|
|
github.com/stretchr/testify v1.11.1
|
|
github.com/vektah/gqlparser/v2 v2.5.31
|
|
github.com/wundergraph/graphql-go-tools/v2 v2.0.0-rc.238
|
|
gitlab.com/unboundsoftware/eventsourced/amqp v1.9.0
|
|
gitlab.com/unboundsoftware/eventsourced/eventsourced v1.19.3
|
|
gitlab.com/unboundsoftware/eventsourced/pg v1.17.0
|
|
go.opentelemetry.io/contrib/bridges/otelslog v0.13.0
|
|
go.opentelemetry.io/otel v1.38.0
|
|
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.38.0
|
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.38.0
|
|
go.opentelemetry.io/otel/exporters/stdout/stdoutlog v0.14.0
|
|
go.opentelemetry.io/otel/log v0.14.0
|
|
go.opentelemetry.io/otel/sdk v1.38.0
|
|
go.opentelemetry.io/otel/sdk/log v0.14.0
|
|
go.opentelemetry.io/otel/sdk/metric v1.38.0
|
|
go.opentelemetry.io/otel/trace v1.38.0
|
|
golang.org/x/crypto v0.43.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
github.com/agnivade/levenshtein v1.2.1 // indirect
|
|
github.com/buger/jsonparser v1.1.1 // indirect
|
|
github.com/cenkalti/backoff/v5 v5.0.3 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
|
github.com/go-logr/logr v1.4.3 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
|
|
github.com/gorilla/websocket v1.5.1 // indirect
|
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.2 // indirect
|
|
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
|
|
github.com/lib/pq v1.10.9 // indirect
|
|
github.com/mfridman/interpolate v0.0.2 // indirect
|
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
|
github.com/rabbitmq/amqp091-go v1.10.0 // indirect
|
|
github.com/sethvargo/go-retry v0.3.0 // indirect
|
|
github.com/sosodev/duration v1.3.1 // indirect
|
|
github.com/stretchr/objx v0.5.2 // indirect
|
|
github.com/tidwall/gjson v1.17.0 // indirect
|
|
github.com/tidwall/match v1.1.1 // indirect
|
|
github.com/tidwall/pretty v1.2.1 // indirect
|
|
github.com/tidwall/sjson v1.2.5 // indirect
|
|
github.com/urfave/cli/v3 v3.6.0 // indirect
|
|
github.com/wundergraph/astjson v0.0.0-20250106123708-be463c97e083 // indirect
|
|
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
|
|
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.38.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.38.0 // indirect
|
|
go.opentelemetry.io/proto/otlp v1.7.1 // indirect
|
|
go.uber.org/multierr v1.11.0 // indirect
|
|
golang.org/x/mod v0.29.0 // indirect
|
|
golang.org/x/net v0.46.0 // indirect
|
|
golang.org/x/sync v0.17.0 // indirect
|
|
golang.org/x/sys v0.37.0 // indirect
|
|
golang.org/x/text v0.30.0 // indirect
|
|
golang.org/x/tools v0.38.0 // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20250825161204-c5933d9347a5 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 // indirect
|
|
google.golang.org/grpc v1.75.0 // indirect
|
|
google.golang.org/protobuf v1.36.10 // indirect
|
|
)
|