Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckStatus ¶
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 ¶
StatusCheckFunc is a function type that checks if the session is aborted
Click to show internal directories.
Click to hide internal directories.