election

package
v0.0.0-...-f584327 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Prefix   string
	Identity string
	Timeout  time.Duration
}

type ResourceLockManager

type ResourceLockManager interface {
	// GetResourceLock should base on storage.KvStorage
	GetResourceLock() resourcelock.Interface
}

ResourceLockManager is the manager provide resource lock based on common storage

func NewResourceLockManager

func NewResourceLockManager(config Config, store storage.KvStorage) ResourceLockManager

NewResourceLockManager build a manager for resource lock

Jump to

Keyboard shortcuts

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