redi

package
v0.0.0-...-b6b44b4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisConnPools []*redis.Pool

Functions

func CloseRedis

func CloseRedis()

func Init

func Init(cfg RedisSection)

func PingRedis

func PingRedis(c redis.Conn, t time.Time) error

func Push

func Push(event *dataobj.Event) error

Types

type RedisSection

type RedisSection struct {
	Addrs   []string       `yaml:"addrs"`
	Pass    string         `yaml:"pass"`
	DB      int            `yaml:"db"`
	Idle    int            `yaml:"idle"`
	Timeout TimeoutSection `yaml:"timeout"`
	Prefix  string         `yaml:"prefix"`
}
var Config RedisSection

type TimeoutSection

type TimeoutSection struct {
	Conn  int `yaml:"conn"`
	Read  int `yaml:"read"`
	Write int `yaml:"write"`
}

Jump to

Keyboard shortcuts

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