cluster

package
v3.18.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

package cluster specifies clustering primitives for multi-node service coordination.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

type Lock interface {
	// Lock and Unlock are simple, coarse grain locks based on a pre-defined
	// lock path. The lock path is an implementation detail that isn't negotiated
	// through this interface. A context is accepted for setting wait bounds.
	Lock(context.Context) error
	Unlock(context.Context) error
	UnlockLogError(context.Context)
	// Owner returns the current owner value.
	Owner() interface{}
}

Lock defines a distributed locking service.

Directories

Path Synopsis
package zookeeper implements a ZooKeeper based Lock.
package zookeeper implements a ZooKeeper based Lock.

Jump to

Keyboard shortcuts

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