pubsub

package
v0.0.0-...-5a2a765 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(project, topic, subscription string) (database.Stream, error)

SetupPubsub global client

Types

type Pubsub

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

func (*Pubsub) Read

func (p *Pubsub) Read(rctx context.Context, cb database.MessageFn) error

func (*Pubsub) Save

func (p *Pubsub) Save(message *database.Message) error

func (*Pubsub) StartWork

func (p *Pubsub) StartWork(db database.Database)

func (*Pubsub) StopWork

func (p *Pubsub) StopWork()

Jump to

Keyboard shortcuts

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