cloudpubsub

package module
v0.0.0-...-3ad59aa Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Synchronizer

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

func NewSynchronizer

func NewSynchronizer(marshaler marshaler.Marshaler, topic *pubsub.Topic, subscription *pubsub.Subscription) *Synchronizer

func (*Synchronizer) AddSubscriber

func (p *Synchronizer) AddSubscriber(subscriber *synchronizer.Subscriber)

func (*Synchronizer) Publish

func (p *Synchronizer) Publish(ctx context.Context, key string, value interface{}, createdAt time.Time, option gocache.Option) error

func (*Synchronizer) RemoveSubscriber

func (p *Synchronizer) RemoveSubscriber(subscriber *synchronizer.Subscriber)

func (*Synchronizer) Start

func (p *Synchronizer) Start(ctx context.Context) error

func (*Synchronizer) Stop

func (p *Synchronizer) Stop() error

Jump to

Keyboard shortcuts

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