Documentation ¶
Index ¶
- Constants
- func NewClient(url string, connectionTimeoutSecond int64, operationTimeoutSecond int64, ...) mq.IClient
- type Message
- type PulsarClient
- func (pc *PulsarClient) Close()
- func (pc *PulsarClient) Send(topic string, msg string) error
- func (pc *PulsarClient) SendAsync(topic string, msg string) error
- func (pc *PulsarClient) SendDelay(topic string, msg string, delay time.Duration) error
- func (pc *PulsarClient) SendDelayAsync(topic string, msg string, delay time.Duration) error
- func (pc *PulsarClient) SendDelayAt(topic string, msg string, delayAt time.Time) error
- func (pc *PulsarClient) SendDelayAtAsync(topic string, msg string, delayAt time.Time) error
- func (pc *PulsarClient) Subscribe(opts mq.ConsumerOptions)
- func (pc *PulsarClient) Subscribes(opts ...mq.ConsumerOptions)
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 ¶
Types ¶
type PulsarClient ¶
type PulsarClient struct {
// contains filtered or unexported fields
}
func (*PulsarClient) Close ¶
func (pc *PulsarClient) Close()
func (*PulsarClient) SendDelayAsync ¶
func (*PulsarClient) SendDelayAt ¶
func (*PulsarClient) SendDelayAtAsync ¶
func (*PulsarClient) Subscribe ¶
func (pc *PulsarClient) Subscribe(opts mq.ConsumerOptions)
func (*PulsarClient) Subscribes ¶
func (pc *PulsarClient) Subscribes(opts ...mq.ConsumerOptions)
Click to show internal directories.
Click to hide internal directories.