pulsar

package
v0.0.0-...-d5b0b98 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pulsar

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

Pulsar is a type of connector

func New

func New(url, topicPrefix string, token string) (*Pulsar, error)

New creates a new pulsar connector

func (*Pulsar) SendDelayMsg

func (s *Pulsar) SendDelayMsg(ctx context.Context, topic string, orderingKey string, data []byte, delay time.Duration) error

SendDelayMsg is the stores that send delay events

func (*Pulsar) SendMsg

func (s *Pulsar) SendMsg(ctx context.Context, topic string, orderingKey string, data []byte) error

SendMsg is the stores that send real-time events

func (*Pulsar) Stop

func (s *Pulsar) Stop() error

Stop stops the pulsar connector gracefully.

Jump to

Keyboard shortcuts

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