gflog

package
v0.0.0-...-2cadf5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

View Source
const GinCtxKey = "__gin_ctx_key__"

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, msg string, fields ...zap.Field)

func Error

func Error(ctx context.Context, msg string, fields ...zap.Field)

func Fatal

func Fatal(ctx context.Context, msg string, fields ...zap.Field)

func GetCtxFromGin

func GetCtxFromGin(c *gin.Context) context.Context

func GetTraceID

func GetTraceID(ctx context.Context) string

func Info

func Info(ctx context.Context, msg string, fields ...zap.Field)

func StreamEntryInterceptor

func StreamEntryInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

func StreamTraceInterceptor

func StreamTraceInterceptor(srv interface{}, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error

func TraceCtx

func TraceCtx(ctx context.Context, traceIDs ...string) context.Context

func TraceMiddleware

func TraceMiddleware() gin.HandlerFunc

func UnaryEntryInterceptor

func UnaryEntryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

func UnaryTraceInterceptor

func UnaryTraceInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

func Warn

func Warn(ctx context.Context, msg string, fields ...zap.Field)

Types

type TraceKey

type TraceKey struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL