Categorygithub.com/apache/rocketmq-clients/golang/v5
modulepackage
5.1.1-rc1
Repository: https://github.com/apache/rocketmq-clients.git
Documentation: pkg.go.dev

# README

The Golang Implementation of Apache RocketMQ Client

Codecov-golang

Here is the golang implementation of the client for Apache RocketMQ.

Architecture

We build the following protocols described in rocketmq-apis on top of gRPC-go, utilizing Protocol buffers to serialize and deserialize data in transmission.

Quick Start

Installation

With Go modules(Go 1.11+), simply add the following import to your code, and then go [build|run|test] will automatically fetch the necessary dependencies.

import "github.com/apache/rocketmq-clients/golang"

Otherwise, to install the golang package, run the following command:

go get -u github.com/apache/rocketmq-clients/golang/v5

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewMockClient creates a new mock instance.
NewMockClientManager creates a new mock instance.
NewMockisClient creates a new mock instance.
NewMockRpcClient creates a new mock instance.
No description provided by the author
No description provided by the author
WithClientConnFunc returns a Option that sets ClientConnFunc for nameserver.
WithClientFunc returns a ProducerOption that sets ClientFunc for producer.
WithConnOptions returns a Option that sets ConnOption for grpc ClientConn.
WithContext is the default client context; it can be used to cancel grpc dial out and other operations that do not have an explicit context.
WithDialOptions returns a ConnOption that sets grpc.DialOption for grpc.DialContext.
WithDialTimeout returns a ConnOption that sets DialTimeout for grpc.DialContext.
WithHealthCheckDuration returns a RpcClientOption that sets healthCheckDuration for RpcClient.
WithHeartbeatDuration returns a RpcClientOption that sets heartbeatDuration for RpcClient.
No description provided by the author
WithMaxCallRecvMsgSize returns a ConnOption that sets client-side request send limit in bytes for grpc.DialContext.
WithMaxCallSendMsgSize returns a ConnOption that sets the client-side response receive limit.
WithQueryRouteTimeout returns a Option that sets timeout duration for nameserver.
WithRpcClientClientConnFunc returns a RpcClientOption that sets ClientConnFunc for RpcClient.
WithRpcClientConnOption returns a RpcClientOption that sets ConnOption for RpcClient.
WithRpcClientOptions returns a Option that sets RpcClientOption for grpc ClientConn.
WithRpcClientTimeout returns a RpcClientOption that sets time for RpcClient when heartbeat and health check.
WithTag returns a consumerOption that sets tag for consumer.
WithTLSConfig returns a ConnOption that sets tls.Config for grpc.DialContext.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

CLIENT_LOG_ADDITIVE = "rocketmq.client.log.additive".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CLIENT_LOG_ASYNC_QUEUESIZE = "rocketmq.client.logAsyncQueueSize".
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RocketMQ span attribute name list.
Span annotation.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
Messaging span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
RocketMQ span attribute name list.
No description provided by the author
No description provided by the author
开始生成枚举值, 默认为0.
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MockClient is a mock of Client interface.
MockClientManager is a mock of ClientManager interface.
MockClientManagerMockRecorder is the mock recorder for MockClientManager.
MockClientMockRecorder is the mock recorder for MockClient.
MockisClient is a mock of isClient interface.
MockisClientMockRecorder is the mock recorder for MockisClient.
MockRpcClient is a mock of RpcClient interface.
MockRpcClientMockRecorder is the mock recorder for MockRpcClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A ClientOption sets options such as timeout, etc.
No description provided by the author
A ConnOption sets options such as tls.Config, etc.
No description provided by the author
MessageId Abstract message id.
* The codec for the message-id.
No description provided by the author
No description provided by the author
No description provided by the author
A ProducerOption sets options such as tls.Config, etc.
No description provided by the author
No description provided by the author
A RpcClientOption sets options such as tls.Config, etc.
No description provided by the author
A ConsumerOption sets options such as tag, etc.
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author