publisher

package
v0.0.0-...-76f4a85 Latest Latest
Warning

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

Go to latest
Published: May 30, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(projectid string) (*gpubsub.Client, error)

Types

type Publisher

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

func NewPublisher

func NewPublisher(logger *zap.Logger, bqEvents <-chan types.EventMsg, config *cfg.Config, collectorPool *sync.Pool, client *gpubsub.Client, id int) (*Publisher, error)

func (*Publisher) Publish

func (c *Publisher) Publish(messages []gpubsub.Message, t *time.Timer, maxDelay time.Duration)

func (*Publisher) Run

func (c *Publisher) Run()

func (*Publisher) Stop

func (c *Publisher) Stop()

Jump to

Keyboard shortcuts

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