pubsub

package
v0.9.112 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGCPPubSub

func NewGCPPubSub(logger logger.Logger) pubsub.PubSub

NewGCPPubSub returns a new GCPPubSub instance

Types

type GCPPubSub

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

GCPPubSub type

func (*GCPPubSub) Init

func (g *GCPPubSub) Init(meta pubsub.Metadata) error

Init parses metadata and creates a new Pub Sub client

func (*GCPPubSub) Publish

func (g *GCPPubSub) Publish(req *pubsub.PublishRequest) error

Publish the topic to GCP Pubsub

func (*GCPPubSub) Subscribe

func (g *GCPPubSub) Subscribe(req pubsub.SubscribeRequest, daprHandler func(msg *pubsub.NewMessage) error) error

Subscribe to the GCP Pubsub topic

Jump to

Keyboard shortcuts

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