центральный сервис хаба ответственен за: - профиль пользователя - кошелёк - платёжные ссылки
Go to file
2023-11-26 16:05:13 +03:00
api openapi sendReport 2023-11-25 14:55:32 +03:00
cmd/app ci: fix env hosts 2023-06-22 09:36:43 +00:00
deployments faster tests 2023-11-25 14:48:59 +03:00
docs/diagram feat: set access token on get tariffs 2023-06-29 14:50:48 +00:00
internal refactoring of the sendreports method and adding the necessary clients 2023-11-26 16:02:01 +03:00
migrations/test add route /recent and fix history repo 2023-11-25 13:36:08 +03:00
pkg feat: filter history by type 2023-09-14 10:07:28 +00:00
tests add failing test for /sendReport 2023-11-25 15:02:42 +03:00
tools fix: make tests usable 2023-11-25 14:48:58 +03:00
.dockerignore ci: fix env hosts 2023-06-22 09:36:43 +00:00
.gitignore in-docker integration tests 2023-11-25 14:48:58 +03:00
.gitlab-ci.yml ci: fix env hosts 2023-06-22 09:36:43 +00:00
.golangci.yaml fix: remove linter that dosn't allow add todo on the top of the func 2023-11-25 14:23:19 +03:00
.mockery.yaml ci: fix env hosts 2023-06-22 09:36:43 +00:00
buf.gen.yaml ci: fix env hosts 2023-06-22 09:36:43 +00:00
buf.work.yaml feat: filter history by type 2023-09-14 10:07:28 +00:00
buf.yaml ci: fix env hosts 2023-06-22 09:36:43 +00:00
Dockerfile small Dockerfile fix 2023-11-25 15:02:46 +03:00
go.mod feat: filter history by type 2023-09-14 10:07:28 +00:00
go.sum feat: filter history by type 2023-09-14 10:07:28 +00:00
Makefile quick fix 2023-11-25 14:48:59 +03:00
README.md update readme.md 2023-11-26 16:05:13 +03:00
report.docx refactoring of the sendreports method and adding the necessary clients 2023-11-26 16:02:01 +03:00

customer

Сервис customer

Branch Pipeline Code coverage
main pipeline status coverage report
staging pipeline status coverage report
dev pipeline status coverage report

Переменные окружения приложения

HTTP_HOST - хост приложения (HTTP)
HTTP_PORT - порт приложения (HTTP)

GRPC_HOST - хост приложения (GRPC)
GRPC_PORT - порт приложения (GRPC)
GRPC_DOMEN - домен приложения (GRPC)

MONGO_HOST - хост MongoDB
MONGO_PORT - порт MongoDB
MONGO_USER - пользователь MongoDB
MONGO_DB_NAME - название базы данных для подключения
MONGO_PASSWORD - пароль пользователя MongoDB
MONGO_AUTH - имя базы данных Mongo, по которой будет производится авторизация

AUTH_MICROSERVICE_USER_URL - ссылка на получение пользователя микросервиса авторизации
HUBADMIN_MICROSERVICE_TARIFF_URL - ссылка на получение тарифов (hub admin)
CURRENCY_MICROSERVICE_TRANSLATE_URL - ссылка на перевод с одной валюты на другую
DISCOUNT_MICROSERVICE_GRPC_HOST - хост микросервиса discount (GRPC)
PAYMENT_MICROSERVICE_GRPC_HOST - хост микросервиса payment (GRPC)

JWT_PUBLIC_KEY - публичный ключ для верификации jwt токена
JWT_ISSUER - издатель токена
JWT_AUDIENCE - аудитория, которая может верифицировать токен

KAFKA_BROKERS - массив брокеров (localhost:8888,localhost:1111)
KAFKA_TOPIC_TARIFF - название топика для сообщений тарифа

Полезные ссылки:

  • Диаграммы
  • Для того чтобы создать новые endpoint, нужно прописать их в customer/api/openapi/v1/openapi.yaml, сделать его описание, с помощью инструкций в makefile сгенерировать файлы