session

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckStatus

func CheckStatus(ctx context.Context) error

CheckStatus checks if the session is aborted by calling the check function from context Returns nil if no check function is set (graceful degradation) Returns error if session is aborted

func WithStatusCheck

func WithStatusCheck(ctx context.Context, checkFunc StatusCheckFunc) context.Context

WithStatusCheck sets a status check function in the context This function will be called by plan hooks and tool middleware to check if session is aborted

Types

type StatusCheckFunc

type StatusCheckFunc func(ctx context.Context) error

StatusCheckFunc is a function type that checks if the session is aborted

Jump to

Keyboard shortcuts

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