Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 552 Bytes

Readme.md

File metadata and controls

16 lines (9 loc) · 552 Bytes

Go Infra Api

Infrastructre methods and types for make api simple

Response

  • abstract type ApiResponse which can used as Tipically responses code as functions (also ready to go-swagger compilation)
  • Json Style for ApiError and method for simple constructing this model

Request

  • extract body to data class from all sources request with special tag and automatic response build (not best practic copy and paste deserialize code)

Metrics Prometheus

  • base golden metrics for api with high level methods for sending metrics to prometheus