storehelper

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateHTTPImpl added in v0.0.79

func ValidateHTTPImpl(impl *spec.HTTPToolImpl) error

func ValidateTool

func ValidateTool(t *spec.Tool) error

ValidateTool performs structural validation of a Tool object.

Types

type SlugLocks

type SlugLocks struct {
	// contains filtered or unexported fields
}

SlugLocks keeps a RW-mutex per bundle|slug pair so that concurrent access to the same (bundle, slug) is serialised while allowing full parallelism for different pairs.

func NewSlugLocks

func NewSlugLocks() *SlugLocks

NewSlugLocks constructs an empty slugLocks helper.

func (*SlugLocks) LockKey

func (l *SlugLocks) LockKey(
	bundleID bundleitemutils.BundleID,
	slug bundleitemutils.ItemSlug,
) *sync.RWMutex

LockKey returns (and lazily creates) the mutex for the given bundle|slug.

Jump to

Keyboard shortcuts

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