distlock

package module
v0.0.0-...-282327f Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: LGPL-2.1 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts ...Option)

func New

func New(pfx string, ttl int) (locker sync.Locker, err error)

Types

type Endpoints

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

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithEndpoints

func WithEndpoints(endpoints []string) Option

type Options

type Options struct {
}

Jump to

Keyboard shortcuts

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