evgkhm / go-nats-pub-sub-restapi-postgresql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example Microservices

Stack

  • REST API
  • Db: PostgreSQL. Driver: sqlx
  • Logger: slog
  • Docker
  • Mq: NATS
  • Test: mockery, go-sqlxmock, testify
  • validator

Getting Started

  1. git clone https://github.com/evgkhm/go-nats-pub-sub-restapi-postgresql
  2. cd go-nats-pub-sub-restapi-postgresql
  3. docker-compose up --build

API

Endpoint Method Description
get_balance_user/:id GET Get balance user
create_user POST Create user
accrual_balance_user POST Accrual balance user

TODO

Add linter, metrics, graceful shutdown

About


Languages

Language:Go 98.6%Language:Dockerfile 1.4%