Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/apache/pulsar-client-go
/ functions
Functions
5,094 in github.com/apache/pulsar-client-go
⨍
Functions
5,094
◇
Types & classes
637
↓ 527 callers
Method
Close
Close the reader and stop the broker to push more messages
pulsar/reader.go:121
↓ 316 callers
Method
endpoint
(componentPath string, parts ...string)
pulsaradmin/pkg/admin/admin.go:105
↓ 295 callers
Method
String
String returns message id in string format
pulsar/message.go:172
↓ 288 callers
Function
NewClient
NewClient Creates a pulsar client instance
pulsar/client.go:30
↓ 283 callers
Method
Error
(args ...interface{})
pulsar/log/logger.go:61
↓ 273 callers
Method
CreateProducer
CreateProducer Creates the producer instance This method will block until the producer is created successfully
pulsar/client.go:204
↓ 267 callers
Method
Close
Close Closes the Client and free associated resources
pulsar/client.go:242
↓ 218 callers
Method
Subscribe
Subscribe Creates a `Consumer` by subscribing to a topic. If the subscription does not exist, a new subscription will be created and all messages pub
pulsar/client.go:210
↓ 203 callers
Method
Receive
Receive a single message. This calls blocks until a message is available.
pulsar/consumer.go:357
↓ 201 callers
Method
Errorf
(format string, args ...interface{})
pulsar/log/logger.go:66
↓ 199 callers
Method
Send
Send a message This call will be blocking until is successfully acknowledged by the Pulsar broker. Example: producer.Send(ctx, pulsar.ProducerMessage{
pulsar/producer.go:232
↓ 199 callers
Method
Topics
()
pulsaradmin/pkg/admin/admin.go:48
↓ 188 callers
Function
newTopicName
()
pulsar/helper_for_test.go:50
↓ 137 callers
Method
Unlock
Unlock unlocks the queue Must be called after Lock() to release the lock
pulsar/internal/blocking_queue.go:63
↓ 136 callers
Method
Lock
Lock locks the queue for manual control Users must call Unlock() after finishing their operations
pulsar/internal/blocking_queue.go:59
↓ 127 callers
Method
Payload
Payload returns the payload of the message
pulsar/message.go:91
↓ 120 callers
Method
Add
Add will add single message to batch.
pulsar/internal/batch_builder.go:45
↓ 105 callers
Method
Uint64
(r io.Reader, byteOrder binary.ByteOrder)
pulsar/primitiveSerDe.go:90
↓ 104 callers
Method
ID
ID returns the unique message ID associated with this message. The message id can be used to univocally refer to a message without having the keep the
pulsar/message.go:101
↓ 104 callers
Method
Now
()
oauth2/clock/clock.go:25
↓ 98 callers
Method
Ack
Ack the consumption of a single message
pulsar/consumer.go:363
↓ 95 callers
Method
GetRestPath
()
pulsaradmin/pkg/utils/topic_name.go:121
↓ 93 callers
Method
PostWithContext
(ctx context.Context, endpoint string, in interface{})
pulsaradmin/pkg/rest/client.go:374
↓ 90 callers
Method
Namespaces
()
pulsaradmin/pkg/admin/admin.go:52
↓ 89 callers
Function
file_PulsarApi_proto_rawDescGZIP
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:9352
↓ 88 callers
Method
GetWithContext
GetWithContext returns the config of the tenant.
pulsaradmin/pkg/admin/tenant.go:56
↓ 79 callers
Function
GetTopicName
The topic name can be in two different forms, one is fully qualified topic name, the other one is short topic name
pulsaradmin/pkg/utils/topic_name.go:47
↓ 78 callers
Method
topicEndpoint
(topic utils.TopicName, parts ...string)
pulsaradmin/pkg/admin/topic_policies.go:168
↓ 72 callers
Function
New
New returns a new client
pulsaradmin/pkg/admin/admin.go:68
↓ 70 callers
Method
WithError
(err error)
pulsar/log/logger.go:40
↓ 70 callers
Function
newError
(result Result, msg string)
pulsar/error.go:149
↓ 62 callers
Method
WithField
(name string, value interface{})
pulsar/log/logger.go:56
↓ 61 callers
Method
Warnf
(format string, args ...interface{})
pulsar/log/logger.go:65
↓ 59 callers
Function
GetNamespaceName
(completeName string)
pulsaradmin/pkg/utils/namespace_name.go:37
↓ 58 callers
Method
SendAsync
SendAsync a message in asynchronous mode. The send operation completes in the background and the provided callback is invoked once the broker acknowle
pulsar/producer.go:250
↓ 57 callers
Method
Debug
(args ...interface{})
pulsar/log/logger.go:58
↓ 57 callers
Method
Write
(s []byte)
pulsar/internal/buffer.go:71
↓ 51 callers
Method
Set
(key, val string)
pulsar/internal/pulsartracing/message_carrier_adaptors.go:52
↓ 50 callers
Method
Info
(args ...interface{})
pulsar/log/logger.go:59
↓ 49 callers
Method
DeleteWithContext
DeleteWithContext deletes a topic, this function can delete both partitioned or non-partitioned topic @param ctx context used for the request @param
pulsaradmin/pkg/admin/topic.go:122
↓ 49 callers
Method
Next
Next reads the next message in the topic, blocking until a message is available
pulsar/reader.go:114
↓ 48 callers
Method
Wait
()
pulsar/negative_acks_tracker_test.go:79
↓ 46 callers
Method
Sleep
(d time.Duration)
oauth2/clock/clock.go:29
↓ 43 callers
Method
Key
Key returns the key of the message, if any
pulsar/message.go:113
↓ 42 callers
Method
After
(d time.Duration)
oauth2/clock/clock.go:27
↓ 42 callers
Method
Create
Create creates a partitioned or non-partitioned topic @param topic topicName struct @param partitions number of topic partitions, when setting to 0,
pulsaradmin/pkg/admin/topic.go:40
↓ 41 callers
Function
ParseTopicName
ParseTopicName parse the given topic name and return TopicName.
pulsar/internal/topic_name.go:45
↓ 37 callers
Method
Warn
(args ...interface{})
pulsar/log/logger.go:60
↓ 36 callers
Method
CreateReader
CreateReader Creates a Reader instance. This method will block until the reader is created successfully.
pulsar/client.go:214
↓ 35 callers
Method
Properties
Properties are application defined key/value pairs that will be attached to the message. Returns the properties attached to the message.
pulsar/message.go:88
↓ 34 callers
Function
DefaultNopLogger
DefaultNopLogger returns a nop logger.
pulsar/log/log.go:21
↓ 34 callers
Function
NewFileKeyReader
(publicKeyPath, privateKeyPath string)
pulsar/crypto/default_crypto_Key_reader.go:28
↓ 33 callers
Method
Inc
()
pulsar/extensible_load_manager_test.go:65
↓ 33 callers
Function
NewStringSchema
(properties map[string]string)
pulsar/schema.go:371
↓ 33 callers
Function
newTopicName
()
pulsaradmin/pkg/admin/topic_test.go:325
↓ 33 callers
Method
partitionConsumers
()
pulsar/consumer_impl.go:792
↓ 31 callers
Method
EntryID
EntryID returns the message entryID
pulsar/message.go:160
↓ 30 callers
Method
Do
(request *http.Request)
oauth2/authorization_tokenretriever.go:107
↓ 29 callers
Method
Debugf
(format string, args ...interface{})
pulsar/log/logger.go:63
↓ 29 callers
Method
LedgerID
LedgerID returns the message ledgerID
pulsar/message.go:157
↓ 28 callers
Method
BatchIdx
BatchIdx returns the message batchIdx
pulsar/message.go:163
↓ 27 callers
Method
Name
Name returns the name of consumer.
pulsar/consumer.go:433
↓ 27 callers
Method
Topic
Topic from which this reader is reading from
pulsar/reader.go:111
↓ 27 callers
Function
toTrackingMessageID
(msgID MessageID)
pulsar/impl_message.go:268
↓ 26 callers
Function
EarliestMessageID
EarliestMessageID returns a messageID that points to the earliest message available in a topic
pulsar/message.go:192
↓ 26 callers
Method
localTopicPolicies
()
pulsaradmin/pkg/admin/topic.go:1104
↓ 26 callers
Method
readPolicyBodyWithContext
( ctx context.Context, endpoint string, applied bool, )
pulsaradmin/pkg/admin/topic_policies.go:196
↓ 26 callers
Method
scopedDeleteWithContext
( ctx context.Context, endpoint string, params map[string]string, )
pulsaradmin/pkg/admin/topic_policies.go:222
↓ 25 callers
Method
Close
()
pulsar/internal/closable.go:21
↓ 25 callers
Method
FlushWithCtx
Flush all the messages buffered in the client and wait until all messageshave been successfully persisted.
pulsar/producer.go:265
↓ 25 callers
Function
makeHTTPCall
(t *testing.T, method string, url string, body string)
pulsar/helper_for_test.go:122
↓ 25 callers
Method
scopedPostWithContext
( ctx context.Context, endpoint string, body interface{}, params map[string]string, )
pulsaradmin/pkg/admin/topic_policies.go:204
↓ 24 callers
Method
CurrentUsage
()
pulsar/internal/memory_limit_controller.go:31
↓ 24 callers
Method
GetSchemaValue
GetSchemaValue returns the de-serialized value of the message, according to the configuration.
pulsar/message.go:133
↓ 24 callers
Method
NewRequestID
Create a new unique request id
pulsar/internal/rpc_client.go:55
↓ 23 callers
Method
PutWithContext
(ctx context.Context, endpoint string, in interface{})
pulsaradmin/pkg/rest/client.go:231
↓ 23 callers
Method
SubLogger
(fields Fields)
pulsar/log/logger.go:36
↓ 23 callers
Function
checkMessageIDType
checkMessageIDType checks if the MessageID is user-defined
pulsar/impl_message.go:255
↓ 23 callers
Method
getConsumerState
()
pulsar/consumer_partition.go:1022
↓ 22 callers
Method
Return
(buf []byte)
pulsar/primitiveSerDe.go:50
↓ 22 callers
Method
_getConn
_getConn returns internal connection field of this partition producer atomically. Note: should only be called by this partition producer before attemp
pulsar/producer_partition.go:1806
↓ 22 callers
Method
add
(id MessageID)
pulsar/ack_grouping_tracker.go:30
↓ 22 callers
Method
isDuplicate
(id MessageID)
pulsar/ack_grouping_tracker.go:34
↓ 21 callers
Method
Get
Get returns the value to which the specified key is mapped, or nil if this map contains no mapping for the key.
pulsar/table_view.go:60
↓ 21 callers
Function
sendSingleChunk
nolint:all
pulsar/message_chunking_test.go:545
↓ 20 callers
Method
GetSchemaInfo
GetSchemaInfo retrieves the latest schema of a topic
pulsaradmin/pkg/admin/schema.go:31
↓ 20 callers
Method
Schemas
()
pulsaradmin/pkg/admin/admin.go:53
↓ 20 callers
Method
get
()
pulsar/consumer_partition.go:340
↓ 20 callers
Function
newAuthTopicName
()
pulsar/helper_for_test.go:54
↓ 19 callers
Method
Chan
Chan returns a channel to consume messages from
pulsar/consumer.go:360
↓ 19 callers
Method
Descriptor
Deprecated: Use Schema.ProtoReflect.Descriptor instead.
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1436
↓ 19 callers
Method
GetError
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:7494
↓ 19 callers
Method
Infof
(format string, args ...interface{})
pulsar/log/logger.go:64
↓ 19 callers
Function
NewPulsarServiceNameResolver
(serviceURL string)
pulsar/internal/service_name_resolver.go:47
↓ 19 callers
Method
ReadableBytes
()
pulsar/internal/buffer.go:36
↓ 19 callers
Method
Result
Result get error's original result.
pulsar/error.go:141
↓ 19 callers
Method
done
(msgID MessageID, err error)
pulsar/producer_partition.go:1651
↓ 18 callers
Method
Nack
Nack acknowledges the failure to process a single message. When a message is "negatively acked" it will be marked for redelivery after some fixed del
pulsar/consumer.go:404
↓ 18 callers
Method
RequestOnCnx
(cnx Connection, requestID uint64, cmdType pb.BaseCommand_Type, message proto.Message)
pulsar/internal/rpc_client.go:75
↓ 18 callers
Method
_getConn
_getConn returns internal connection field of this partition consumer atomically. Note: should only be called by this partition consumer before attemp
pulsar/consumer_partition.go:2598
next →
1–100 of 5,094, ranked by callers