Help us shape the future of Go! Take the 2026 Go Developer Survey

locks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package locks serializes mutations sharing one provider client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProjectEnvKey

func ProjectEnvKey(id string) string

func ProjectHTTPKey

func ProjectHTTPKey(id string) string

func ProjectPortKey

func ProjectPortKey(id string) string

func ServiceKey

func ServiceKey(id string) string

Types

type Keyed

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

Keyed is a zero-value-ready, context-aware mutex registry. Entries are removed when no holder or waiter references them.

func (*Keyed) Lock

func (k *Keyed) Lock(ctx context.Context, key string) (func(), error)

Jump to

Keyboard shortcuts

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