memqclient

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseServerURL string
}

func (*Client) CreateQueue

func (c *Client) CreateQueue(queue string) error

func (*Client) DeleteQueue

func (c *Client) DeleteQueue(queue string) error

func (*Client) Dequeue

func (c *Client) Dequeue(queue string) (*memq.Message, error)

Dequeue takes an item off of queue from the server. If a nil message is returned with no error then the queue is empty.

func (*Client) DrainQueue

func (c *Client) DrainQueue(queue string) error

func (*Client) Enqueue

func (c *Client) Enqueue(queue, data string) (*memq.Message, error)

func (*Client) Stats

func (c *Client) Stats() (*memq.Stats, error)

Jump to

Keyboard shortcuts

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