redisleaser

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package redisleaser provides an implementation of prototransform.Leaser that is backed by a Redis instance: https://redis.io/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) (prototransform.Leaser, error)

New creates a new Redis-backed leaser with the given configuration.

Types

type Config

type Config struct {
	Client        *redis.Pool
	KeyPrefix     string
	LeaseTTL      time.Duration
	PollingPeriod time.Duration
}

Config represents the configuration parameters used to create a new Redis-backed leaser.

Jump to

Keyboard shortcuts

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