lock

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModifiedLockKey

func GetModifiedLockKey(key, storeName, appID string) (string, error)

func SaveLockConfiguration

func SaveLockConfiguration(storeName string, metadata map[string]string) error

Types

type Lock

type Lock struct {
	Name          string
	FactoryMethod func() lock.Store
}

func New

func New(name string, f func() lock.Store) Lock

type Registry

type Registry interface {
	Register(fs ...Lock)
	Create(name, version string) (lock.Store, error)
}

func NewRegistry

func NewRegistry() Registry

type StoreConfiguration

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

Jump to

Keyboard shortcuts

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