Documentation
¶
Overview ¶
Package hostport validates trusted host interfaces and bounds callback lifetimes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithSynchronousFence ¶
func WithSynchronousFence[I, O any](ctx context.Context, invalidCallback error, invoke func(context.Context, func(I) error) error, action func(context.Context, I) (O, error)) (O, error)
WithSynchronousFence owns one callback's lifetime across a trusted host guard. It rejects missing, repeated and escaped callbacks and cancels unfinished work. The host must hold real authority/revision guards until the callback completes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.