order-service

module
v0.0.0-...-ba50d35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2023 License: MIT

README

Usage:

# Postgres, JetStream
$ make compose-up
# Run app with migrations
$ make run-subscriber
# Run publishing script
$ make run-publisher

HTTP Endpoints:

  • GET localhost/order/:id - display order by id
  • GET localhost/healthz - liveness probe
  • GET localhost/swagger/*any - docs

Demo


Created from Go-clean-template which is created & supported by Evrone.

Directories

Path Synopsis
cmd
app
Code generated by swaggo/swag.
Code generated by swaggo/swag.
internal
app
Package app configures and runs application.
Package app configures and runs application.
controller/http
Package v1 implements routing paths.
Package v1 implements routing paths.
usecase
Package usecase implements application business logic.
Package usecase implements application business logic.
pkg
httpserver
Package httpserver implements HTTP server.
Package httpserver implements HTTP server.
postgres
Package postgres implements postgres connection.
Package postgres implements postgres connection.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL