Documentation ¶
Index ¶
- Constants
- func CreateLogger(cfg Config) zerolog.Logger
- func GetLogger(cfg Config) zerolog.Logger
- func HttpMiddleware(cfg Config, next http.Handler) http.Handler
- func StreamInterceptor(cfg Config) grpc.StreamServerInterceptor
- func UnaryInterceptor(cfg Config) grpc.UnaryServerInterceptor
- func WithTraceID(ctx context.Context, t string) context.Context
- func WithUsername(ctx context.Context, t string) context.Context
- type Config
Constants ¶
View Source
const ( TraceID = "trace_id" Username = "usename" )
Variables ¶
This section is empty.
Functions ¶
func CreateLogger ¶
func StreamInterceptor ¶
func StreamInterceptor(cfg Config) grpc.StreamServerInterceptor
func UnaryInterceptor ¶
func UnaryInterceptor(cfg Config) grpc.UnaryServerInterceptor
Types ¶
Click to show internal directories.
Click to hide internal directories.