streamingk8s.io/streaming/pkg/runtime Index | Files

package runtime

import "k8s.io/streaming/pkg/runtime"

Index

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
js/wasm
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.