pulsar

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "pulsar"

Variables

View Source
var (
	ErrEmptyTopic            = errors.New("topic cannot be empty")
	ErrEmptySubscriptionName = errors.New("subscription name cannot be empty")
)

Functions

This section is empty.

Types

type Pulsar

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

func New added in v1.0.0

func New(connOpts *opts.ConnectionOptions) (*Pulsar, error)

func (*Pulsar) Close added in v1.0.0

func (p *Pulsar) Close(_ context.Context) error

func (*Pulsar) DisplayError added in v1.0.0

func (p *Pulsar) DisplayError(msg *records.ErrorRecord) error

DisplayError will parse an Error record and print (pretty) output to STDOUT

func (*Pulsar) DisplayMessage added in v1.0.0

func (p *Pulsar) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error

DisplayMessage will parse a Read record and print (pretty) output to STDOUT

func (*Pulsar) Name added in v1.0.0

func (p *Pulsar) Name() string

func (*Pulsar) Read

func (p *Pulsar) Read(ctx context.Context, readOpts *opts.ReadOptions, resultsChan chan *records.ReadRecord, errorChan chan *records.ErrorRecord) error

func (*Pulsar) Relay added in v1.0.0

func (p *Pulsar) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, errorCh chan<- *records.ErrorRecord) error

func (*Pulsar) Test added in v1.0.0

func (p *Pulsar) Test(_ context.Context) error

func (*Pulsar) Tunnel added in v1.4.0

func (p *Pulsar) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, errorCh chan<- *records.ErrorRecord) error

func (*Pulsar) Write

func (p *Pulsar) Write(ctx context.Context, writeOpts *opts.WriteOptions, errorCh chan<- *records.ErrorRecord, messages ...*records.WriteRecord) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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