Documentation ¶
Index ¶
- Variables
- func CORS() gin.HandlerFunc
- func GRPCZap() grpc.UnaryServerInterceptor
- func GinZap(logger *zap.Logger, cfg config.Config) gin.HandlerFunc
- func RecoveryWithZap(logger *zap.Logger, stack bool) gin.HandlerFunc
- func RequestIdentifier() gin.HandlerFunc
- func SetupI18n() gin.HandlerFunc
- func VersionInfo() gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string = ""
Version contains version information
Functions ¶
func CORS ¶
func CORS() gin.HandlerFunc
func GRPCZap ¶
func GRPCZap() grpc.UnaryServerInterceptor
GRPCZap is a request interceptor for logging all gRPC requests using Zap
func RecoveryWithZap ¶
func RecoveryWithZap(logger *zap.Logger, stack bool) gin.HandlerFunc
RecoveryWithZap recovery middleware implementation with zap
func RequestIdentifier ¶
func RequestIdentifier() gin.HandlerFunc
RequestIdentifier inject a UUIDv4 in all contexts for better tracking
func SetupI18n ¶
func SetupI18n() gin.HandlerFunc
SetupI18n implements i18n configuration to be used in middleware
func VersionInfo ¶
func VersionInfo() gin.HandlerFunc
VersionInfo add a version header to the request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.