config

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RedisConfig struct {
		Address     string `yaml:"server"`
		DB          int    `yaml:"db"`
		Password    string `yaml:"password"`
		IdleTimout  string `yaml:"timeout"`
		Poolsize    int    `yaml:"pool"`
		MaxCapacity int    `yaml:"maxopen"`
	}
	Pool *redis.Pool
)
View Source
var (
	AllWorkers  []sidekiq.Worker
	AllWorkerIs = map[string]func(*sidekiq.Worker) sidekiq.WorkerI{}
	SWI         []sidekiq.WorkerI
)

Functions

func CloseRedisPool added in v1.0.1

func CloseRedisPool()

func GetRedisConn added in v1.0.1

func GetRedisConn() redis.Conn

func InitRedis

func InitRedis()

Types

This section is empty.

Jump to

Keyboard shortcuts

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