go-micro-template

command module
v0.0.0-...-13646a0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 6 Imported by: 0

README

go-micro-template

A Golang micro-service template. The boilerplate code for all of Hype Bid's micro-services coded in Go.

Features

  • gRPC Server
    • HealthCheck function
  • gRPC Inteceptors / middleware
    • Tranaction Id
    • Logrus logger
    • ctx tags
    • Recover from panics
    • Hash validation check
  • Gorm integration with Postgres
  • Doppler for secrets
  • Docker file
  • Docker-Compose file
  • Go modules
  • Github Actions
  • Prometheus metrics integrated
  • Go tests
  • pre-commit ci

Install pre-commit

brew install pre-commit

Run Application Using Doppler

go build -o bin/micro-template -v .
doppler run --command="./bin/micro-template"

Run Tests Using Doppler

doppler run --command="go test ./tests"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
db
rpc

Jump to

Keyboard shortcuts

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