lock

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: NCSA Imports: 6 Imported by: 0

README

lock Build Status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lockers

func Lockers() []string

func Register

func Register(s Locker)

Types

type Locker

type Locker interface {
	Name() string
	Init() error
	Lock(id string) error
	Unlock(id string) error
}

func FromName

func FromName(s string) (Locker, error)

func New

func New(providerName string) (Locker, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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