Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(connectionUrl string, logger *zap.SugaredLogger, pulsarOptions ...*pulsar.ClientOptions) *wpc
func NewWpcSubscriber ¶
func NewWpcSubscriber(h MessageHandler) *wpcSubscriber
func ReleaseMessage ¶
func ReleaseMessage(msg *Message)
Types ¶
type Message ¶
type Message struct { MessageId []byte Topic string ProducerName string Properties map[string]string Payload []byte PublishTime time.Time EventTime time.Time RedeliveryCount int }
func AcquireMessage ¶
func AcquireMessage() *Message
func (*Message) ReleaseThis ¶
func (m *Message) ReleaseThis()
type MessageHandler ¶
Click to show internal directories.
Click to hide internal directories.