redis

package
v0.20.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 redis handles the monitor capabilities of harvester using redis.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

Watcher of Redis changes.

func New

func New(client redis.UniversalClient, pollInterval time.Duration, keys []string) (*Watcher, error)

New watcher.

func (*Watcher) Watch

func (w *Watcher) Watch(ctx context.Context, ch chan<- []*change.Change) error

Watch keys and changes.

Jump to

Keyboard shortcuts

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