hostport

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 3 Imported by: 0

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 IsNil

func IsNil(value any) bool

IsNil recognizes both nil interfaces and interfaces containing nil values.

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.

Jump to

Keyboard shortcuts

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