mempubsub

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mempubsub provides an in-memory pubsub implementation. This should not be used for production: it is intended for local development and testing.

mempubsub does not support any types for As.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenSubscription

func OpenSubscription(b *Broker, topicName string, ackDeadline time.Duration) *pubsub.Subscription

func OpenTopic

func OpenTopic(b *Broker, name string) *pubsub.Topic

OpenTopic establishes a new topic. Open subscribers for the topic before publishing.

Types

type Broker

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

func NewBroker

func NewBroker(topicNames []string) *Broker

Jump to

Keyboard shortcuts

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