lock

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 6 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 NewWithUrl added in v1.0.12

func NewWithUrl(url string) (*Distributed, error)

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