redis

package
v0.0.0-...-1a80116 Latest Latest
Warning

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

Go to latest
Published: May 2, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoaderFunc

func NewLoaderFunc(redisAddr string, redisDB int, listKey string) pingd.Loader

NewLoaderFunc returns the function that loads back hosts and last statuses from REDIS in case of reboot send them to the startHostCh channel

func NewNotifierFunc

func NewNotifierFunc(redisAddr string, redisDB int, upKey, downKey string) pingd.Notifier

NewNotifierFunc returns the function that publishes on redis the up/down events

func NewReceiverFunc

func NewReceiverFunc(redisAddr string, redisDB int, startKey, stopKey, listKey string) pingd.Receiver

NewReceiverFunc returns the function that listens of redis for start/stop commands

Types

This section is empty.

Jump to

Keyboard shortcuts

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