Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateQueue(queue string) error
- func (c *Client) DeleteQueue(queue string) error
- func (c *Client) Dequeue(queue string) (*memq.Message, error)
- func (c *Client) DrainQueue(queue string) error
- func (c *Client) Enqueue(queue, data string) (*memq.Message, error)
- func (c *Client) Stats() (*memq.Stats, error)
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 (*Client) DeleteQueue ¶
func (*Client) Dequeue ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.