stores

package
v0.0.0-...-b812b29 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RedisDataStore

func RedisDataStore(name string, pool *redis.Pool) func(*queue.Queue) error

RedisDataStore configures the queue with a redis data store

Types

type MemoryStore

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

A MemoryStore stores all records data into the memory

func (*MemoryStore) Finish

func (m *MemoryStore) Finish(d []byte) error

Finish marks a task as finished

func (*MemoryStore) HouseKeeping

func (m *MemoryStore) HouseKeeping() error

HouseKeeping handles dead jobs, putting them back in the queue

func (*MemoryStore) Length

func (m *MemoryStore) Length(q string) (int, error)

Length returns the number of elements in the in-memory array

func (*MemoryStore) Retrieve

func (m *MemoryStore) Retrieve() ([]byte, error)

Retrieve pops the latest data from the in-memory array

func (*MemoryStore) Store

func (m *MemoryStore) Store(d []byte) error

Store add the provided data to the in-memory array

type RedisStore

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

A RedisStore stores all records data into redis

func (*RedisStore) Finish

func (r *RedisStore) Finish(d []byte) error

Finish marks a task as finished

func (*RedisStore) HouseKeeping

func (r *RedisStore) HouseKeeping() error

HouseKeeping handles dead job, putting them back in the queue

func (*RedisStore) Length

func (r *RedisStore) Length(q string) (int, error)

Length returns the number of elements in the in-memory array

func (*RedisStore) Retrieve

func (r *RedisStore) Retrieve() ([]byte, error)

Retrieve pops the latest data from the in-memory array

func (*RedisStore) Store

func (r *RedisStore) Store(d []byte) error

Store add the provided data to the in-memory array

Jump to

Keyboard shortcuts

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