pubsub

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPublisher

func NewPublisher(project, topic string, objectType interface{}) queuesgo.Publisher

Creates a new Google's pubsub publisher The topic must already exist in the given project. the objectType interface should be any of the following types, any other type will cause an error returning a nil value 1. Copy of a structure 2. Non-nil pointer to a struct of the expected type. 3. A map with key string and any value

func NewSubscriber

func NewSubscriber(project, subscriptionName string, objectType interface{}, logMode bool) queuesgo.Subscriber

Creates a new Google's pubsub subscriber implementation the subscription name must exists already on the given projects the objectType interface should be any of the following types, any other type will cause an error returning a nil value 1. Copy of a structure 2. Non-nil pointer to a struct of the expected type. 3. A map with key string and any value

Types

This section is empty.

Jump to

Keyboard shortcuts

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