coordinator

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Acquire

func Acquire(ctx context.Context, agentID, resourceID string) error

Acquire acquires a lock on a resource for the given agent. Convenience wrapper around Global().Acquire().

func Global

func Global() *muxcoord.Coordinator

Global returns the singleton coordinator instance. Thread-safe via sync.Once.

func Release

func Release(agentID, resourceID string) error

Release releases a lock on a resource. Convenience wrapper around Global().Release().

func ReleaseAll

func ReleaseAll(agentID string)

ReleaseAll releases all locks held by the given agent. Convenience wrapper around Global().ReleaseAll().

Types

This section is empty.

Jump to

Keyboard shortcuts

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