locker

package
v0.0.0-...-e436aa5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataConfig

type DataConfig struct {
	Memcache []MemcacheClientConfig `json:"memcache"`
}

type Lock

type Lock interface {
	Unlock() error
}

type LockGroup

type LockGroup string
const (
	GroupRunEvent  LockGroup = "run_event"
	GroupGetEvents LockGroup = "get_events"
)

type Locker

type Locker interface {
	io.Closer
	Lock(LockGroup, string, time.Duration) (Lock, error)
}

func NewMemcache

func NewMemcache(log logger.Logger, keyPrefix, configPath string, refreshInterval time.Duration) Locker

type MemcacheClientConfig

type MemcacheClientConfig struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}

Jump to

Keyboard shortcuts

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