module
Version:
v0.0.0-...-580ec26
Opens a new window with list of versions in this module.
Published: Nov 22, 2019
License: MIT
Opens a new window with license information.
README
¶
GO-SKELETON
this is a simple golang app skeleton that proposes an architecture to provide:
- http server
- grpc server
- elasticSearch repository
- dependency injection (container)
- metrics middleware (prometheus)
- contextualised services (i.e: request-scoped services)
Table of Contents
- Requirements
- Install
- Run
- gRPC/HTTP servers
- job
- Generate protobuf files
- TODOs
Requirements:
- Docker
- Docker-compose
- Golang with go-modules activated
Install
go mod download
Run
The skeleton app provides two commands/binaries:
- a gRPC & HTTP server
- a job
Run gRPC & http servers
go run ./cmd/server
Run job
go run ./cmd/job
Generate protobuf files
make proto
Directories
¶
Click to show internal directories.
Click to hide internal directories.