redis

package
v0.3.688 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisMQ

type RedisMQ struct {
	// contains filtered or unexported fields
}

func (*RedisMQ) Close

func (mq *RedisMQ) Close() error

Close shuts down the redis connection pool and stops the goroutine associated with the ticker

func (*RedisMQ) Delete

func (mq *RedisMQ) Delete(ctx context.Context, job *models.Call) error

func (*RedisMQ) Push

func (mq *RedisMQ) Push(ctx context.Context, job *models.Call) (*models.Call, error)

func (*RedisMQ) Reserve

func (mq *RedisMQ) Reserve(ctx context.Context) (*models.Call, error)

Would be nice to switch to this model http://redis.io/commands/rpoplpush#pattern-reliable-queue

Jump to

Keyboard shortcuts

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