package runtime
import "k8s.io/streaming/pkg/runtime"
Index ¶
- func HandleCrash()
- func HandleCrashWithContext(ctx context.Context, additionalHandlers ...func(context.Context, interface{}))
- func HandleCrashWithLogger(logger klog.Logger)
- func HandleError(err error)
- func HandleErrorWithContext(ctx context.Context, err error, msg string, keysAndValues ...interface{})
Functions ¶
func HandleCrash ¶
func HandleCrash()
HandleCrash recovers from panic and logs it.
func HandleCrashWithContext ¶
func HandleCrashWithContext(ctx context.Context, additionalHandlers ...func(context.Context, interface{}))
HandleCrashWithContext recovers from panic and logs it with the context logger.
func HandleCrashWithLogger ¶
func HandleCrashWithLogger(logger klog.Logger)
HandleCrashWithLogger recovers from panic and logs it using the provided logger.
func HandleError ¶
func HandleError(err error)
HandleError logs an asynchronous error.
func HandleErrorWithContext ¶
func HandleErrorWithContext(ctx context.Context, err error, msg string, keysAndValues ...interface{})
HandleErrorWithContext logs an asynchronous error with contextual logging when available.
Source Files ¶
runtime.go
- Version
- v0.36.0 (latest)
- Published
- Apr 14, 2026
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 47 minutes ago –
Tools for package owners.