Documentation
¶
Index ¶
- func CopyTo(dst context.Context, src context.Context) context.Context
- func Funcs(ctx context.Context) (NotifyFunc, TraceFunc, WarnFunc)
- func Notify(ctx context.Context, format string, args ...any)
- func Trace(ctx context.Context, format string, args ...any)
- func Warn(ctx context.Context, format string, args ...any)
- func With(ctx context.Context, notifyFunc NotifyFunc, traceFunc TraceFunc, ...) context.Context
- type NotifyFunc
- type TraceFunc
- type WarnFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Funcs ¶ added in v0.16.0
func Funcs(ctx context.Context) (NotifyFunc, TraceFunc, WarnFunc)
Funcs returns the currently registered notify/trace/warn handlers or nil for any handler that was not set. Used by the chat pipeline to wrap outer display handlers with a persistence layer without losing the original behavior.
Types ¶
type NotifyFunc ¶
Click to show internal directories.
Click to hide internal directories.