lock

package
v1.0.10-a Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Distributed

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

func New

func New(bucket, prefix string) *Distributed

func (*Distributed) Lock

func (d *Distributed) Lock(ctx context.Context, ttl time.Duration) error

func (*Distributed) Unlock

func (d *Distributed) Unlock() error

Jump to

Keyboard shortcuts

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