pubsub

package
v1.0.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 9 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) Close added in v1.0.0

func (g *GCPPubSub) Close() error

func (*GCPPubSub) Features added in v1.0.0

func (g *GCPPubSub) Features() []pubsub.Feature

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