Documentation ¶
Index ¶
- func EnsureTraceIDInCtx(ctx context.Context) context.Context
- func Error(ctx context.Context, args ...interface{})
- func Errorf(ctx context.Context, format string, args ...interface{})
- func Fatal(ctx context.Context, args ...interface{})
- func Fatalf(ctx context.Context, format string, args ...interface{})
- func Flush()
- func GetUUID() string
- func Info(ctx context.Context, args ...interface{})
- func Infof(ctx context.Context, format string, args ...interface{})
- func InitFlags(flagset *flag.FlagSet)
- func NewContext() context.Context
- func ToJson(obj interface{}) string
- func Warning(ctx context.Context, args ...interface{})
- func Warningf(ctx context.Context, format string, args ...interface{})
- type ContextKeyType
- type Verbose
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶
Types ¶
type ContextKeyType ¶
type ContextKeyType string
ContextKeyType context key
const ( // TraceID context key name TraceID ContextKeyType = "TraceId" )
Click to show internal directories.
Click to hide internal directories.