gcloud

package
v0.0.0-...-0d796e7 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Log allows to set a logger to debug the library
	Log *logrus.Logger
)

Functions

This section is empty.

Types

type PubSubPipeline

type PubSubPipeline struct {
	CreateTopics       bool
	CreateSubscription bool
	// contains filtered or unexported fields
}

PubSubPipeline is the pipeline for use with Google Compute's PubSub

func NewPubSubPipeline

func NewPubSubPipeline(projID *string, queue *string, resultQueue *string, subscriptionName *string, handler pipeline.Handler) *PubSubPipeline

NewPubSubPipeline creates a new Google PubSub based pipeline

func (*PubSubPipeline) AckMessage

func (p *PubSubPipeline) AckMessage(message *pipeline.Message) error

AckMessage acknolwedges the messages recieved to makring it as processed.

func (*PubSubPipeline) PostMessage

func (p *PubSubPipeline) PostMessage(outboundTopciName string, message *pipeline.Message) error

PostMessage allows posting a message to another queue, usually for further processing

func (*PubSubPipeline) Start

func (p *PubSubPipeline) Start() error

Start starts the process of getting messages from pubsub

func (*PubSubPipeline) Stop

func (p *PubSubPipeline) Stop()

Stop shuts down the iterator

Jump to

Keyboard shortcuts

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