queue

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client implements the queue interface.

func NewClient

func NewClient(options ...func(*Client)) *Client

NewClient return a configured client.

func (*Client) Pull

func (c *Client) Pull(ctx context.Context, fn func(context.Context, []byte) error) error

Pull fetch a message from queue.

func (*Client) Push

func (c *Client) Push(_ context.Context, content []byte) error

Push the message to queue.

Jump to

Keyboard shortcuts

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