rocketmq

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MasterId = int64(0)
)

Variables

This section is empty.

Functions

func Close

func Close(client admin.Admin)

func DisableClientLogging

func DisableClientLogging()

func NewAdminClient

func NewAdminClient(r *config.RocketMQConfig) (admin.Admin, error)

func NewProducer

func NewProducer(r *config.RocketMQConfig, group string) (rocketmq.Producer, error)

func NewPushConsumer

func NewPushConsumer(r *config.RocketMQConfig, group string) (rocketmq.PushConsumer, error)

Types

type Message

type Message struct {
	Topic          string            `json:"topic"`
	QueueID        *int              `json:"queueId"`
	QueueOffset    int64             `json:"queueOffset"`
	MsgID          string            `json:"msgId"`
	OffsetMsgID    string            `json:"offsetMsgId"`
	Properties     map[string]string `json:"properties,omitempty"`
	BornHost       string            `json:"bornHost,omitempty"`
	StoreHost      string            `json:"storeHost,omitempty"`
	BornTimestamp  int64             `json:"bornTimestamp,omitempty"`
	StoreTimestamp int64             `json:"storeTimestamp,omitempty"`
	ReconsumeTimes int32             `json:"reconsumeTimes,omitempty"`
}

func NewMessage

func NewMessage(msg *primitive.MessageExt, detailed bool) Message

Jump to

Keyboard shortcuts

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