go-microservice

command module
v0.0.0-...-dd1e53b Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-microservice

Golang archetype oriented to microservices.

Dependencies

Golang, Docker, Make, Swag tool

Features

  • Architecture
    • Handlers, respositories and services
    • Custom Messages and Errors
    • Pagination and Ordering
    • DB Migrator
  • Go 1.24 (at the moment)
  • Libraries
    • Web: Fiber
    • ORM: Gorm
    • OAuth2: Gocloak
    • Validations: Go Playground Validator
    • Unit Test: Testify
    • DB: Postgres
    • Tracing: Opentelemetry
    • Test: Testcontainers
    • OpenAPI: Fiber Swagger
    • Environment: Godot
  • Keycloak as Auth Server
  • Distributed tracing
    • OpenTelemetry, Micrometer and Jaeger
  • Swagger
    • Swaggo & Fiber Swagger
    • Customized with command make swagger (OAuth2 server by parameter and not static)
  • Auditory
    • Gorm custom auditory
  • Database
    • Postgres for the app
    • Testcontainers for testing

Files

Usage

  • Executing make help all the available commands will be listed.
  • Also the standard Go commands could be used, like go run main.go
  • To use this archetype with a different name, execute this command to replace the names:
find . -type f -exec sed -i 's/go-microservice/your-project-name/g' {} +

MongoDB instead of Postgres


Donate
  • Bitcoin (QR) 1GqdJ63RDPE4eJKujHi166FAyigvHu5R7v
  • Paypal

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
cmd command
domain
internal
migrator command
tests

Jump to

Keyboard shortcuts

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