/utils

Server utils for Go-Gin

Primary LanguageGo

Server Utils for Go-Gin

Logging

  • Zero logger custom implementation

Database

  • Database connection utils with replica setup
  • Global transaction interface

Errors

  • Custom application error

Middlewares

  • Latency
  • RequestID
  • JWT Authentication
  • Error handler
    • Gin errors
    • Validation errors
    • Application error
  • Basic Auth
  • Meta info

Utils

  • Generate access token
  • Generate random safe refresh token
  • Parse access token

Todo

  • Add support for reading access token from cookie