Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpirationResult ¶
ExpirationResult is the struct that represents the result of an expiration job
func (*ExpirationResult) String ¶
func (r *ExpirationResult) String() string
type ExpirationWorker ¶
type ExpirationWorker struct { RedisClient *extredis.Client 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) (*ExpirationWorker, error)
GetExpirationWorker returns a new scores expirer worker
func NewExpirationWorker ¶
func NewExpirationWorker(host string, port int, password string, db int, connectionTimeout int, expirationCheckInterval time.Duration, expirationLimitPerRun int) (*ExpirationWorker, error)
NewExpirationWorker returns a new scores expirer worker with already loaded configuration.
func (*ExpirationWorker) Run ¶
func (w *ExpirationWorker) Run(resultsChan chan<- []*ExpirationResult, errChan chan<- error)
Run starts the worker -- this method blocks
Click to show internal directories.
Click to hide internal directories.