pubsub

package
v0.11.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(options map[string]interface{}) (collector.Client, error)

New will initialize and return an authorized Client

Types

type Client

type Client struct {
	collector.Client
	Options map[string]interface{}
}

func (*Client) ClientType

func (pubsubClient *Client) ClientType() collector.ClientType

func (*Client) Exit

func (pubsubClient *Client) Exit() (err error)

func (*Client) Poll

func (pubsubClient *Client) Poll(timestamp time.Time, resultsChannel chan<- string, pollOffset int) (count int, currentTimestamp time.Time, err error)

func (*Client) Stream

func (pubsubClient *Client) Stream(streamChannel chan<- string) (cancelFunc func(), err error)

Jump to

Keyboard shortcuts

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