pulsar

package
v0.6.31 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERVER_URL_KEY         = "pulsar.service-url"
	CONNECTION_TIMEOUT_KEY = "pulsar.connectionTimeout"
	OPERATION_TIMEOUT_KEY  = "pulsar.operationTimeout"
)
View Source
const (
	MAX_RETRY_TIMES = 50
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(url string, connectionTimeoutSecond int64, operationTimeoutSecond int64, appName string) mq.IClient

Types

type Message

type Message struct {
	Msg pulsar.Message
}

type PulsarClient

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

func (*PulsarClient) Close

func (pc *PulsarClient) Close()

func (*PulsarClient) Send

func (pc *PulsarClient) Send(msg *mq.Message) error

func (*PulsarClient) SendAsync

func (pc *PulsarClient) SendAsync(msg *mq.Message) error

func (*PulsarClient) Subscribe

func (pc *PulsarClient) Subscribe(opts mq.ConsumerOptions) error

func (*PulsarClient) SubscribeSync added in v0.6.22

func (pc *PulsarClient) SubscribeSync(opts mq.ConsumerOptions) error

Jump to

Keyboard shortcuts

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