Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.38 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.38 KB

Backend infra libraries

It's a collection of independent reusable components which are wrapped by dependency injection container. You can use it directly, without DI, but it provides a good enough defaults and pre-setuped metrics, healthchecks, swagger, graceful-shutdown and etc.

Endpoints working out of the box:

  • <host>:1984/readiness, manage graceful shutdown;
  • <host>:1984/metrics, prometheus metrics;
  • <host>:1984/debug/pprof, profiler.

Default application port - 8080.

Examples are available at folder.

How to

At first look into go.dev/doc to make it works locally by ssh.

Next, setup .env by puttig into it:

  • GH_USER=<user-name>, username to fetch private lib, usually it's invqauser, but, you can setup you're own;
  • GH_TOKEN=<token-val>, user's personal access token.

.env will redistribute it over docker-build/compose/integration tests/tools/etc.

Versions

To get a specific version of backend-infra-libraries in your application, you can use the command like:

GOPRIVATE="github.com/fusionmedialimited/*" go get -v github.com/fusionmedialimited/backend-infra-libraries/v3@v3.0.0