Passa al contenuto principale

Overview

avatar service provides HTTP API for storing and retrieving avatar images from S3-compatible storage.

Service Configuration

Configuration is passed to the service as ENV variables. Please refer to the /internal/config/config.go file for a complete list of all supported configuration variables and their description.

Metrics

The service exposes the following Prometheus metrics.

Metric NameType
http_requests_totalCounter with labels [operation, code]
http_request_duration_secondsHistogram with labels [operation, code]

Dependencies and Vendor

The project uses Go modules for managing dependencies, and we commit the vendor directory. When you add/change dependencies, be sure to clean and update vendor before submitting your Merge Request for review.

go mod tidy
go mod vendor

Tests and Linters

To execute the units tests for the service go to the root project directory and run:

go test -race ./...

To run the linters go to the root project directory and run:

golangci-lint run