rds

package
v0.0.0-...-5dbc853 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2015 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit()

func Init

func Init(host string)

Types

type RdsPool

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

func NewRdsPool

func NewRdsPool(pool *redis.Pool) *RdsPool

NewRdsPool returns a new instance.

func (*RdsPool) AddToQM

func (r *RdsPool) AddToQM(key string, queue string) chatable.CompoundError

func (*RdsPool) Dequeue

Dequeue pops the first element from the given queue. This is a blocking operation.

func (*RdsPool) Enqueue

Enqueue pushes a PublicEnvelope into the tail of a given queue.

func (*RdsPool) QMMembers

func (r *RdsPool) QMMembers(key string) ([]string, chatable.CompoundError)

func (*RdsPool) RemoveFromQM

func (r *RdsPool) RemoveFromQM(key string, queue string) chatable.CompoundError

Jump to

Keyboard shortcuts

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