lock

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 6 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 Registry

type Registry struct {
	Logger logger.Logger
	// contains filtered or unexported fields
}
var DefaultRegistry *Registry

DefaultRegistry is the singleton with the registry.

func NewRegistry

func NewRegistry() *Registry

func (*Registry) Create

func (r *Registry) Create(name, version, logName string) (lock.Store, error)

func (*Registry) RegisterComponent added in v1.9.0

func (r *Registry) RegisterComponent(componentFactory func(logger.Logger) lock.Store, names ...string)

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