worker

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpirationResult

type ExpirationResult struct {
	DeletedMembers int
	DeletedSet     bool
	Set            string
}

ExpirationResult is the struct that represents the result of an expiration job

type ExpirationWorker

type ExpirationWorker struct {
	RedisClient             *extredis.Client
	Logger                  zap.Logger
	Config                  *viper.Viper
	ConfigPath              string
	ExpirationCheckInterval time.Duration
	ExpirationLimitPerRun   int
	// contains filtered or unexported fields
}

ExpirationWorker is the struct that represents the scores expirer worker

func GetExpirationWorker

func GetExpirationWorker(configPath string, logger zap.Logger) (*ExpirationWorker, error)

GetExpirationWorker returns a new scores expirer worker

func (*ExpirationWorker) Run

func (w *ExpirationWorker) Run()

Run starts the worker -- this method blocks

func (*ExpirationWorker) Stop

func (w *ExpirationWorker) Stop()

Stop stops

Jump to

Keyboard shortcuts

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