MCPcopy Index your code

hub / github.com/apache/pulsar-client-go / functions

Functions5,094 in github.com/apache/pulsar-client-go

↓ 527 callersMethodClose
Close the reader and stop the broker to push more messages
pulsar/reader.go:121
↓ 316 callersMethodendpoint
(componentPath string, parts ...string)
pulsaradmin/pkg/admin/admin.go:105
↓ 295 callersMethodString
String returns message id in string format
pulsar/message.go:172
↓ 288 callersFunctionNewClient
NewClient Creates a pulsar client instance
pulsar/client.go:30
↓ 283 callersMethodError
(args ...interface{})
pulsar/log/logger.go:61
↓ 273 callersMethodCreateProducer
CreateProducer Creates the producer instance This method will block until the producer is created successfully
pulsar/client.go:204
↓ 267 callersMethodClose
Close Closes the Client and free associated resources
pulsar/client.go:242
↓ 218 callersMethodSubscribe
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 callersMethodReceive
Receive a single message. This calls blocks until a message is available.
pulsar/consumer.go:357
↓ 201 callersMethodErrorf
(format string, args ...interface{})
pulsar/log/logger.go:66
↓ 199 callersMethodSend
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 callersMethodTopics
()
pulsaradmin/pkg/admin/admin.go:48
↓ 188 callersFunctionnewTopicName
()
pulsar/helper_for_test.go:50
↓ 137 callersMethodUnlock
Unlock unlocks the queue Must be called after Lock() to release the lock
pulsar/internal/blocking_queue.go:63
↓ 136 callersMethodLock
Lock locks the queue for manual control Users must call Unlock() after finishing their operations
pulsar/internal/blocking_queue.go:59
↓ 127 callersMethodPayload
Payload returns the payload of the message
pulsar/message.go:91
↓ 120 callersMethodAdd
Add will add single message to batch.
pulsar/internal/batch_builder.go:45
↓ 105 callersMethodUint64
(r io.Reader, byteOrder binary.ByteOrder)
pulsar/primitiveSerDe.go:90
↓ 104 callersMethodID
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 callersMethodNow
()
oauth2/clock/clock.go:25
↓ 98 callersMethodAck
Ack the consumption of a single message
pulsar/consumer.go:363
↓ 95 callersMethodGetRestPath
()
pulsaradmin/pkg/utils/topic_name.go:121
↓ 93 callersMethodPostWithContext
(ctx context.Context, endpoint string, in interface{})
pulsaradmin/pkg/rest/client.go:374
↓ 90 callersMethodNamespaces
()
pulsaradmin/pkg/admin/admin.go:52
↓ 89 callersFunctionfile_PulsarApi_proto_rawDescGZIP
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:9352
↓ 88 callersMethodGetWithContext
GetWithContext returns the config of the tenant.
pulsaradmin/pkg/admin/tenant.go:56
↓ 79 callersFunctionGetTopicName
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 callersMethodtopicEndpoint
(topic utils.TopicName, parts ...string)
pulsaradmin/pkg/admin/topic_policies.go:168
↓ 72 callersFunctionNew
New returns a new client
pulsaradmin/pkg/admin/admin.go:68
↓ 70 callersMethodWithError
(err error)
pulsar/log/logger.go:40
↓ 70 callersFunctionnewError
(result Result, msg string)
pulsar/error.go:149
↓ 62 callersMethodWithField
(name string, value interface{})
pulsar/log/logger.go:56
↓ 61 callersMethodWarnf
(format string, args ...interface{})
pulsar/log/logger.go:65
↓ 59 callersFunctionGetNamespaceName
(completeName string)
pulsaradmin/pkg/utils/namespace_name.go:37
↓ 58 callersMethodSendAsync
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 callersMethodDebug
(args ...interface{})
pulsar/log/logger.go:58
↓ 57 callersMethodWrite
(s []byte)
pulsar/internal/buffer.go:71
↓ 51 callersMethodSet
(key, val string)
pulsar/internal/pulsartracing/message_carrier_adaptors.go:52
↓ 50 callersMethodInfo
(args ...interface{})
pulsar/log/logger.go:59
↓ 49 callersMethodDeleteWithContext
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 callersMethodNext
Next reads the next message in the topic, blocking until a message is available
pulsar/reader.go:114
↓ 48 callersMethodWait
()
pulsar/negative_acks_tracker_test.go:79
↓ 46 callersMethodSleep
(d time.Duration)
oauth2/clock/clock.go:29
↓ 43 callersMethodKey
Key returns the key of the message, if any
pulsar/message.go:113
↓ 42 callersMethodAfter
(d time.Duration)
oauth2/clock/clock.go:27
↓ 42 callersMethodCreate
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 callersFunctionParseTopicName
ParseTopicName parse the given topic name and return TopicName.
pulsar/internal/topic_name.go:45
↓ 37 callersMethodWarn
(args ...interface{})
pulsar/log/logger.go:60
↓ 36 callersMethodCreateReader
CreateReader Creates a Reader instance. This method will block until the reader is created successfully.
pulsar/client.go:214
↓ 35 callersMethodProperties
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 callersFunctionDefaultNopLogger
DefaultNopLogger returns a nop logger.
pulsar/log/log.go:21
↓ 34 callersFunctionNewFileKeyReader
(publicKeyPath, privateKeyPath string)
pulsar/crypto/default_crypto_Key_reader.go:28
↓ 33 callersMethodInc
()
pulsar/extensible_load_manager_test.go:65
↓ 33 callersFunctionNewStringSchema
(properties map[string]string)
pulsar/schema.go:371
↓ 33 callersFunctionnewTopicName
()
pulsaradmin/pkg/admin/topic_test.go:325
↓ 33 callersMethodpartitionConsumers
()
pulsar/consumer_impl.go:792
↓ 31 callersMethodEntryID
EntryID returns the message entryID
pulsar/message.go:160
↓ 30 callersMethodDo
(request *http.Request)
oauth2/authorization_tokenretriever.go:107
↓ 29 callersMethodDebugf
(format string, args ...interface{})
pulsar/log/logger.go:63
↓ 29 callersMethodLedgerID
LedgerID returns the message ledgerID
pulsar/message.go:157
↓ 28 callersMethodBatchIdx
BatchIdx returns the message batchIdx
pulsar/message.go:163
↓ 27 callersMethodName
Name returns the name of consumer.
pulsar/consumer.go:433
↓ 27 callersMethodTopic
Topic from which this reader is reading from
pulsar/reader.go:111
↓ 27 callersFunctiontoTrackingMessageID
(msgID MessageID)
pulsar/impl_message.go:268
↓ 26 callersFunctionEarliestMessageID
EarliestMessageID returns a messageID that points to the earliest message available in a topic
pulsar/message.go:192
↓ 26 callersMethodlocalTopicPolicies
()
pulsaradmin/pkg/admin/topic.go:1104
↓ 26 callersMethodreadPolicyBodyWithContext
( ctx context.Context, endpoint string, applied bool, )
pulsaradmin/pkg/admin/topic_policies.go:196
↓ 26 callersMethodscopedDeleteWithContext
( ctx context.Context, endpoint string, params map[string]string, )
pulsaradmin/pkg/admin/topic_policies.go:222
↓ 25 callersMethodClose
()
pulsar/internal/closable.go:21
↓ 25 callersMethodFlushWithCtx
Flush all the messages buffered in the client and wait until all messageshave been successfully persisted.
pulsar/producer.go:265
↓ 25 callersFunctionmakeHTTPCall
(t *testing.T, method string, url string, body string)
pulsar/helper_for_test.go:122
↓ 25 callersMethodscopedPostWithContext
( ctx context.Context, endpoint string, body interface{}, params map[string]string, )
pulsaradmin/pkg/admin/topic_policies.go:204
↓ 24 callersMethodCurrentUsage
()
pulsar/internal/memory_limit_controller.go:31
↓ 24 callersMethodGetSchemaValue
GetSchemaValue returns the de-serialized value of the message, according to the configuration.
pulsar/message.go:133
↓ 24 callersMethodNewRequestID
Create a new unique request id
pulsar/internal/rpc_client.go:55
↓ 23 callersMethodPutWithContext
(ctx context.Context, endpoint string, in interface{})
pulsaradmin/pkg/rest/client.go:231
↓ 23 callersMethodSubLogger
(fields Fields)
pulsar/log/logger.go:36
↓ 23 callersFunctioncheckMessageIDType
checkMessageIDType checks if the MessageID is user-defined
pulsar/impl_message.go:255
↓ 23 callersMethodgetConsumerState
()
pulsar/consumer_partition.go:1022
↓ 22 callersMethodReturn
(buf []byte)
pulsar/primitiveSerDe.go:50
↓ 22 callersMethod_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 callersMethodadd
(id MessageID)
pulsar/ack_grouping_tracker.go:30
↓ 22 callersMethodisDuplicate
(id MessageID)
pulsar/ack_grouping_tracker.go:34
↓ 21 callersMethodGet
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 callersFunctionsendSingleChunk
nolint:all
pulsar/message_chunking_test.go:545
↓ 20 callersMethodGetSchemaInfo
GetSchemaInfo retrieves the latest schema of a topic
pulsaradmin/pkg/admin/schema.go:31
↓ 20 callersMethodSchemas
()
pulsaradmin/pkg/admin/admin.go:53
↓ 20 callersMethodget
()
pulsar/consumer_partition.go:340
↓ 20 callersFunctionnewAuthTopicName
()
pulsar/helper_for_test.go:54
↓ 19 callersMethodChan
Chan returns a channel to consume messages from
pulsar/consumer.go:360
↓ 19 callersMethodDescriptor
Deprecated: Use Schema.ProtoReflect.Descriptor instead.
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1436
↓ 19 callersMethodGetError
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:7494
↓ 19 callersMethodInfof
(format string, args ...interface{})
pulsar/log/logger.go:64
↓ 19 callersFunctionNewPulsarServiceNameResolver
(serviceURL string)
pulsar/internal/service_name_resolver.go:47
↓ 19 callersMethodReadableBytes
()
pulsar/internal/buffer.go:36
↓ 19 callersMethodResult
Result get error's original result.
pulsar/error.go:141
↓ 19 callersMethoddone
(msgID MessageID, err error)
pulsar/producer_partition.go:1651
↓ 18 callersMethodNack
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 callersMethodRequestOnCnx
(cnx Connection, requestID uint64, cmdType pb.BaseCommand_Type, message proto.Message)
pulsar/internal/rpc_client.go:75
↓ 18 callersMethod_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