lock

package
v0.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockDriver

type LockDriver interface {
	Create(key string, ttl time.Duration) driver.LockDriver
}

func Get

func Get(name ...string) LockDriver

type Manager

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

func New

func New(driver LockDriver) *Manager

func (*Manager) Create

func (m *Manager) Create(key string, ttl time.Duration) driver.LockDriver

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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