pubsubpublisher

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMapFuncAnyToPublishResults

func GetMapFuncAnyToPublishResults(p *Publisher) func(context.Context, interface{}) (interface{}, error)

Types

type Publisher

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

func NewIntervalPublisher

func NewIntervalPublisher(ctx context.Context, topic *pubsub.Topic, publishInterval time.Duration) (*Publisher, error)

func (*Publisher) RegisterPublishableObj

func (p *Publisher) RegisterPublishableObj(obj common.Publishable)

func (*Publisher) StartPublishIntervalLoop

func (p *Publisher) StartPublishIntervalLoop(ctx context.Context, publishInterval time.Duration)

Jump to

Keyboard shortcuts

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