Documentation ¶
Index ¶
- Constants
- func WithAccessKey(key string) broker.Option
- func WithAwaitDuration(awaitDuration time.Duration) broker.Option
- func WithBatch(batch bool) broker.PublishOption
- func WithCompress(compress bool) broker.PublishOption
- func WithConsumerModel(model MessageModel) broker.SubscribeOption
- func WithCredentials(accessKey, accessSecret, securityToken string) broker.Option
- func WithDelayTimeLevel(level int) broker.PublishOption
- func WithDeliveryTimestamp(deliveryTimestamp time.Time) broker.PublishOption
- func WithEnableTrace() broker.Option
- func WithGroupName(name string) broker.Option
- func WithInstanceName(name string) broker.Option
- func WithInvisibleDuration(invisibleDuration time.Duration) broker.Option
- func WithKeys(keys []string) broker.PublishOption
- func WithLoggerLevel(level log.Level) broker.Option
- func WithMaxMessageNumKey(messageNum int32) broker.Option
- func WithMessageGroup(group string) broker.PublishOption
- func WithNameServer(addrs []string) broker.Option
- func WithNameServerDomain(uri string) broker.Option
- func WithNamespace(ns string) broker.Option
- func WithProperties(properties map[string]string) broker.PublishOption
- func WithReceiveInterval(receiveInterval time.Duration) broker.Option
- func WithRetryCount(count int) broker.Option
- func WithSecretKey(secret string) broker.Option
- func WithSecurityToken(token string) broker.Option
- func WithSendAsync(enable bool) broker.PublishOption
- func WithSendWithTransaction(enable bool) broker.PublishOption
- func WithShardingKey(key string) broker.PublishOption
- func WithSubscriptionExpressions(subscriptionExpressions map[string]*rmqClient.FilterExpression) broker.Option
- func WithSubscriptionFilterExpression(filterExpression *rmqClient.FilterExpression) broker.SubscribeOption
- func WithTag(tags string) broker.PublishOption
- type AccessKey
- type AwaitDurationKey
- type BatchKey
- type CompressKey
- type ConsumerModelKey
- type Credentials
- type CredentialsKey
- type DelayTimeLevelKey
- type DeliveryTimestampKey
- type DriverType
- type EnableTraceKey
- type GroupNameKey
- type InstanceNameKey
- type InvisibleDurationKey
- type KeysKey
- type LoggerLevelKey
- type MaxMessageNumKey
- type MessageGroupKey
- type MessageModel
- type NameServerUrlKey
- type NameServersKey
- type NamespaceKey
- type PropertiesKey
- type ReceiveIntervalKey
- type RetryCountKey
- type SecretKey
- type SecurityTokenKey
- type SendAsyncKey
- type SendWithTransactionKey
- type ShardingKeyKey
- type SubscriptionExpressionsKey
- type SubscriptionFilterExpressionKey
- type TagsKey
Constants ¶
View Source
const ( SPAN_ATTRIBUTE_KEY_ROCKETMQ_OPERATION = "messaging.rocketmq.operation" SPAN_ATTRIBUTE_KEY_ROCKETMQ_NAMESPACE = "messaging.rocketmq.namespace" SPAN_ATTRIBUTE_KEY_ROCKETMQ_TAG = "messaging.rocketmq.message_tag" SPAN_ATTRIBUTE_KEY_ROCKETMQ_KEYS = "messaging.rocketmq.message_keys" SPAN_ATTRIBUTE_KEY_ROCKETMQ_CLIENT_ID = "messaging.rocketmq.client_id" SPAN_ATTRIBUTE_KEY_ROCKETMQ_MESSAGE_TYPE = "messaging.rocketmq.message_type" SPAN_ATTRIBUTE_KEY_ROCKETMQ_CLIENT_GROUP = "messaging.rocketmq.client_group" SPAN_ATTRIBUTE_KEY_ROCKETMQ_ATTEMPT = "messaging.rocketmq.attempt" SPAN_ATTRIBUTE_KEY_ROCKETMQ_BATCH_SIZE = "messaging.rocketmq.batch_size" SPAN_ATTRIBUTE_KEY_ROCKETMQ_DELIVERY_TIMESTAMP = "messaging.rocketmq.delivery_timestamp" SPAN_ATTRIBUTE_KEY_ROCKETMQ_AVAILABLE_TIMESTAMP = "messaging.rocketmq.available_timestamp" SPAN_ATTRIBUTE_KEY_ROCKETMQ_ACCESS_KEY = "messaging.rocketmq.access_key" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_MESSAGING_SYSTEM = "rocketmq" SPAN_ATTRIBUTE_VALUE_DESTINATION_KIND = "topic" SPAN_ATTRIBUTE_VALUE_MESSAGING_PROTOCOL = "RMQ-gRPC" SPAN_ATTRIBUTE_VALUE_MESSAGING_PROTOCOL_VERSION = "v1" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_NORMAL_MESSAGE = "normal" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_FIFO_MESSAGE = "fifo" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_DELAY_MESSAGE = "delay" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_TRANSACTION_MESSAGE = "transaction" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_SEND_OPERATION = "send" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_RECEIVE_OPERATION = "receive" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_PULL_OPERATION = "pull" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_AWAIT_OPERATION = "await" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_PROCESS_OPERATION = "process" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_ACK_OPERATION = "ack" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_NACK_OPERATION = "nack" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_COMMIT_OPERATION = "commit" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_ROLLBACK_OPERATION = "rollback" SPAN_ATTRIBUTE_VALUE_ROCKETMQ_DLQ_OPERATION = "dlq" // Messaging span attribute name list SPAN_ATTRIBUTE_KEY_MESSAGING_SYSTEM = "messaging.system" SPAN_ATTRIBUTE_KEY_MESSAGING_DESTINATION = "messaging.destination" SPAN_ATTRIBUTE_KEY_MESSAGING_DESTINATION_KIND = "messaging.destination_kind" SPAN_ATTRIBUTE_KEY_MESSAGING_PROTOCOL = "messaging.protocol" SPAN_ATTRIBUTE_KEY_MESSAGING_PROTOCOL_VERSION = "messaging.protocol_version" SPAN_ATTRIBUTE_KEY_MESSAGING_URL = "messaging.url" SPAN_ATTRIBUTE_KEY_MESSAGING_ID = "messaging.message_id" SPAN_ATTRIBUTE_KEY_MESSAGING_PAYLOAD_SIZE_BYTES = "messaging.message_payload_size_bytes" SPAN_ATTRIBUTE_KEY_MESSAGING_OPERATION = "messaging.operation" SPAN_ATTRIBUTE_VALUE_MESSAGING_SEND_OPERATION = "send" SPAN_ATTRIBUTE_VALUE_MESSAGING_RECEIVE_OPERATION = "receive" SPAN_ATTRIBUTE_VALUE_MESSAGING_PROCESS_OPERATION = "process" SPAN_ATTRIBUTE_KEY_TRANSACTION_RESOLUTION = "commitAction" // Span annotation SPAN_ANNOTATION_AWAIT_CONSUMPTION = "__await_consumption" SPAN_ANNOTATION_MESSAGE_KEYS = "__message_keys" SPAN_ANNOTATION_ATTR_START_TIME = "__start_time" )
RocketMQ span attribute name list
View Source
const (
DefaultAddr = "127.0.0.1:9876"
)
Variables ¶
This section is empty.
Functions ¶
func WithAccessKey ¶
func WithBatch ¶
func WithBatch(batch bool) broker.PublishOption
func WithCompress ¶
func WithCompress(compress bool) broker.PublishOption
func WithConsumerModel ¶ added in v1.2.3
func WithConsumerModel(model MessageModel) broker.SubscribeOption
func WithCredentials ¶
func WithDelayTimeLevel ¶
func WithDelayTimeLevel(level int) broker.PublishOption
func WithDeliveryTimestamp ¶
func WithDeliveryTimestamp(deliveryTimestamp time.Time) broker.PublishOption
func WithEnableTrace ¶
func WithGroupName ¶
func WithInstanceName ¶
func WithInvisibleDuration ¶
func WithKeys ¶
func WithKeys(keys []string) broker.PublishOption
func WithMaxMessageNumKey ¶
func WithMessageGroup ¶
func WithMessageGroup(group string) broker.PublishOption
func WithNameServer ¶
func WithNameServerDomain ¶
func WithNamespace ¶
func WithProperties ¶
func WithProperties(properties map[string]string) broker.PublishOption
func WithRetryCount ¶
func WithSecretKey ¶
func WithSecurityToken ¶
func WithSendAsync ¶
func WithSendAsync(enable bool) broker.PublishOption
func WithSendWithTransaction ¶
func WithSendWithTransaction(enable bool) broker.PublishOption
func WithShardingKey ¶
func WithShardingKey(key string) broker.PublishOption
func WithSubscriptionExpressions ¶
func WithSubscriptionExpressions(subscriptionExpressions map[string]*rmqClient.FilterExpression) broker.Option
func WithSubscriptionFilterExpression ¶
func WithSubscriptionFilterExpression(filterExpression *rmqClient.FilterExpression) broker.SubscribeOption
func WithTag ¶
func WithTag(tags string) broker.PublishOption
Types ¶
type AwaitDurationKey ¶
type AwaitDurationKey struct{}
type CompressKey ¶
type CompressKey struct{}
type ConsumerModelKey ¶ added in v1.2.3
type ConsumerModelKey struct{}
type Credentials ¶
type Credentials struct {
AccessKey, AccessSecret, SecurityToken string
}
type CredentialsKey ¶
type CredentialsKey struct{}
type DelayTimeLevelKey ¶
type DelayTimeLevelKey struct{}
type DeliveryTimestampKey ¶
type DeliveryTimestampKey struct{}
type DriverType ¶
type DriverType string
const ( DriverTypeAliyun DriverType = "aliyun" // github.com/aliyunmq/mq-http-go-sdk DriverTypeV2 DriverType = "v2" // github.com/apache/rocketmq-client-go/v2 DriverTypeV5 DriverType = "v5" // github.com/apache/rocketmq-clients/golang )
type EnableTraceKey ¶
type EnableTraceKey struct{}
type GroupNameKey ¶
type GroupNameKey struct{}
type InstanceNameKey ¶
type InstanceNameKey struct{}
type InvisibleDurationKey ¶
type InvisibleDurationKey struct{}
type LoggerLevelKey ¶
type LoggerLevelKey struct{}
type MaxMessageNumKey ¶
type MaxMessageNumKey struct{}
type MessageGroupKey ¶
type MessageGroupKey struct{}
type MessageModel ¶ added in v1.2.3
type MessageModel string
const ( MessageModelBroadCasting MessageModel = "BroadCasting" MessageModelClustering MessageModel = "Clustering" )
type NameServerUrlKey ¶
type NameServerUrlKey struct{}
type NameServersKey ¶
type NameServersKey struct{}
type NamespaceKey ¶
type NamespaceKey struct{}
type PropertiesKey ¶
type PropertiesKey struct{}
type ReceiveIntervalKey ¶
type ReceiveIntervalKey struct{}
type RetryCountKey ¶
type RetryCountKey struct{}
type SecurityTokenKey ¶
type SecurityTokenKey struct{}
type SendAsyncKey ¶
type SendAsyncKey struct{}
type SendWithTransactionKey ¶
type SendWithTransactionKey struct{}
type ShardingKeyKey ¶
type ShardingKeyKey struct{}
type SubscriptionExpressionsKey ¶
type SubscriptionExpressionsKey struct{}
type SubscriptionFilterExpressionKey ¶
type SubscriptionFilterExpressionKey struct{}
Click to show internal directories.
Click to hide internal directories.