cherami

package
v1.0.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(host service.Host) (task.Backend, error)

NewBackend creates a Cherami client backend

func RegisterHyperbahnBootstrapFile

func RegisterHyperbahnBootstrapFile(filename string)

RegisterHyperbahnBootstrapFile registers the hyperbahn bootstrap filename required for cherami

Types

type Backend

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

Backend holds cherami data

func (*Backend) Encoder

func (b *Backend) Encoder() task.Encoding

Encoder returns an encoder for cherami messages

func (*Backend) Enqueue

func (b *Backend) Enqueue(ctx context.Context, message []byte) error

Enqueue sends the message to cherami

func (*Backend) ExecuteAsync

func (b *Backend) ExecuteAsync() error

ExecuteAsync spins off workers to consume messages and execute tasks

func (*Backend) Start

func (b *Backend) Start() error

Start the cherami pubsub

func (*Backend) Stop

func (b *Backend) Stop() error

Stop closes and cleans up cherami resources

Jump to

Keyboard shortcuts

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