MCPcopy Create free account

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

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

↓ 18 callersFunctionretryAssert
(t assert.TestingT, times int, milliseconds int, update func(), assert func(assert.TestingT) bool)
pulsar/helper_for_test.go:176
↓ 17 callersMethodGetRequestId
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:4068
↓ 16 callersMethodHasNext
HasNext checks if there is any message available to read from the current position If there is any errors, it will return false
pulsar/reader.go:118
↓ 16 callersFunctionNewMetricsProvider
NewMetricsProvider returns metrics registered to registerer.
pulsar/internal/metrics.go:101
↓ 16 callersMethodPut
Put enqueue one item, block if the queue is full This is currently used for the internal testing
pulsar/internal/blocking_queue.go:28
↓ 16 callersMethodSerialize
Serialize the message id into a sequence of bytes that can be stored somewhere else
pulsar/message.go:154
↓ 16 callersMethodStop
()
oauth2/clock/clock.go:74
↓ 16 callersMethodUnsubscribe
Unsubscribe the consumer Unsubscribing will cause the subscription to be deleted, and all the retained data can potentially be deleted based on messa
pulsar/consumer.go:339
↓ 16 callersFunctionassertServiceURI
(t *testing.T, serviceURI, expectedServiceName string, expectedServiceInfo, expectedServiceHosts []string, ex
pulsar/internal/service_uri_test.go:204
↓ 16 callersFunctioncreateTestMessagePayload
(size int)
pulsar/message_chunking_test.go:536
↓ 16 callersMethodgetLedgerIDs
()
pulsar/ack_grouping_tracker_test.go:79
↓ 16 callersFunctionnewAckGroupingTracker
(options *AckGroupingOptions, ackIndividual func(id MessageID), ackCumulative func(id MessageID), ackList f
pulsar/ack_grouping_tracker.go:43
↓ 15 callersMethodEventTime
EventTime returns the event time associated with this message. It is typically set by the applications via `ProducerMessage.EventTime`. If EventTime i
pulsar/message.go:110
↓ 15 callersMethodGet
(readerIndex uint32, size uint32)
pulsar/internal/buffer.go:50
↓ 15 callersFunctionGetPackageName
(completeName string)
pulsaradmin/pkg/utils/package_name.go:47
↓ 15 callersMethodPutUnsafe
PutUnsafe enqueue one item without locking the queue, block if the queue is full
pulsar/internal/blocking_queue.go:31
↓ 15 callersMethodSize
Size return the current size of the queue
pulsar/internal/blocking_queue.go:49
↓ 15 callersMethodTryReserveMemory
(size int64)
pulsar/internal/memory_limit_controller.go:28
↓ 15 callersMethodclose
()
pulsar/ack_grouping_tracker.go:40
↓ 14 callersMethodAckID
AckID the consumption of a single message, identified by its MessageID When `EnableBatchIndexAcknowledgment` is false, if a message ID represents a me
pulsar/consumer.go:369
↓ 14 callersMethodGetNamespace
()
pulsaradmin/pkg/utils/topic_name.go:113
↓ 14 callersMethodGetTenant
()
pulsaradmin/pkg/utils/topic_name.go:109
↓ 14 callersMethodGetWithQueryParamsWithContext
( ctx context.Context, endpoint string, obj interface{}, params map[string]string, decode bool, )
pulsaradmin/pkg/rest/client.go:153
↓ 14 callersFunctionNewBlockingQueue
NewBlockingQueue init block queue and returns a BlockingQueue
pulsar/internal/blocking_queue.go:90
↓ 14 callersFunctioncreatePartitionedTopic
(topic string, n int)
pulsar/reader_test.go:1036
↓ 14 callersMethodhandleResponse
(requestID uint64, response *pb.BaseCommand)
pulsar/internal/connection.go:721
↓ 13 callersMethodDecode
(data []byte, v interface{})
pulsar/schema.go:85
↓ 13 callersMethodGetData
GetData returns the authentication data identifying this client that will be sent to the broker.
pulsar/auth/provider.go:40
↓ 13 callersMethodInit
Init the authentication provider.
pulsar/auth/provider.go:31
↓ 13 callersFunctionNewAvroSchema
NewAvroSchema creates a new AvroSchema Note: the function will panic if creation of codec fails
pulsar/schema.go:314
↓ 13 callersFunctionNewPulsarServiceURIFromURIString
(uri string)
pulsar/internal/service_uri.go:60
↓ 13 callersMethodRead
(size uint32)
pulsar/internal/buffer.go:46
↓ 13 callersMethodSince
(time.Time)
oauth2/clock/clock.go:26
↓ 13 callersFunctionhttpPut
(requestPath string, body interface{})
pulsar/helper_for_test.go:79
↓ 13 callersMethodreconnectToBroker
(connectionClosed *connectionClosed)
pulsar/producer_partition.go:471
↓ 12 callersMethodClear
Clear will clear the current buffer data.
pulsar/internal/buffer.go:90
↓ 12 callersMethodEnum
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:550
↓ 12 callersMethodGet
Get returns the config of the tenant.
pulsaradmin/pkg/admin/tenant.go:53
↓ 12 callersFunctionNewBufferWrapper
(buf []byte)
pulsar/internal/buffer.go:155
↓ 12 callersMethodReadableSlice
()
pulsar/internal/buffer.go:52
↓ 12 callersMethodSize
Size returns the number of key-value mappings in the TableView.
pulsar/table_view.go:51
↓ 12 callersMethodTopicPartitions
TopicPartitions Fetches the list of partitions for a given topic If the topic is partitioned, this will return a list of partition names. If the topi
pulsar/client.go:228
↓ 12 callersFunctioncreateClient
()
pulsar/schema_test.go:49
↓ 12 callersMethodgrabConn
(assignedBrokerURL string)
pulsar/consumer_partition.go:2205
↓ 11 callersFunctionNewDefaultMessageCrypto
NewDefaultMessageCrypto get the instance of message crypto
pulsar/crypto/default_message_crypto.go:57
↓ 11 callersFunctionNewLookupService
NewLookupService init a lookup service struct and return an object of LookupService.
pulsar/internal/lookup_service.go:95
↓ 11 callersMethodOrderingKey
OrderingKey returns the ordering key of the message, if any
pulsar/message.go:116
↓ 11 callersMethodPartitionIdx
PartitionIdx returns the message partitionIdx
pulsar/message.go:166
↓ 11 callersMethodPostWithMultiPartWithContext
( ctx context.Context, endpoint string, in interface{}, body io.Reader, contentType string, )
pulsaradmin/pkg/rest/client.go:408
↓ 11 callersMethodRelease
Release decreases the reference count and returns the buffer to the pool if it's associated with a buffer pool and the count reaches zero.
pulsar/internal/buffer.go:83
↓ 11 callersMethodSubscriptions
()
pulsaradmin/pkg/admin/admin.go:49
↓ 11 callersMethodWithFields
(fields Fields)
pulsar/log/logger.go:55
↓ 11 callersMethodack
(batchID int)
pulsar/impl_message.go:436
↓ 11 callersFunctionbuildResponse
(statusCode int, body interface{})
oauth2/authorization_tokenretriever_test.go:322
↓ 11 callersFunctiongenerateRandomName
()
pulsar/consumer_impl.go:857
↓ 11 callersFunctionhttpDelete
(requestPaths ...string)
pulsar/helper_for_test.go:69
↓ 11 callersFunctionresponseType
(r pb.CommandLookupTopicResponse_LookupType)
pulsar/internal/lookup_service_test.go:130
↓ 10 callersMethodAckIDList
AckIDList the consumption of a list of messages, identified by their MessageIDs This method should be used when `AckWithResponse` is true. Otherwise,
pulsar/consumer.go:378
↓ 10 callersMethodBatchSize
BatchSize returns 0 or the batch size, which must be greater than BatchIdx()
pulsar/message.go:169
↓ 10 callersMethodClose
Close closes the connection by closing underlying socket connection and closeCh. This also triggers callbacks to the ConnectionClosed listeners.
pulsar/internal/connection.go:1057
↓ 10 callersMethodCommit
Commit You can commit the transaction after all the sending/acknowledging operations with the transaction success.
pulsar/transaction.go:61
↓ 10 callersMethodDeleteWithQueryParamsWithContext
( ctx context.Context, endpoint string, params map[string]string, )
pulsaradmin/pkg/rest/client.go:342
↓ 10 callersMethodEncode
(v interface{})
pulsar/schema.go:84
↓ 10 callersMethodGetMessage
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:7459
↓ 10 callersMethodGetMessageTTL
GetMessageTTL returns the message TTL for a topic. Returns -1 if not set
pulsaradmin/pkg/admin/topic.go:395
↓ 10 callersMethodLookup
Lookup perform a lookup for the given topic, confirm the location of the broker where the topic is located, and return the LookupResult.
pulsar/internal/lookup_service.go:64
↓ 10 callersFunctionNewBuffer
NewBuffer creates and initializes a new Buffer using buf as its initial contents.
pulsar/internal/buffer.go:147
↓ 10 callersFunctionNewBytesSchema
(properties map[string]string)
pulsar/schema.go:403
↓ 10 callersMethodNewTransaction
NewTransaction creates a new Transaction instance. This function is used to initiate a new transaction for performing atomic operations on the messag
pulsar/client.go:239
↓ 10 callersMethodProducerName
ProducerName returns the name of the producer that has published the message.
pulsar/message.go:84
↓ 10 callersMethodPut
(writerIdx uint32, s []byte)
pulsar/internal/buffer.go:73
↓ 10 callersFunctionRetry
Retry the given operation until the returned error is nil or the context is done.
pulsar/internal/retry.go:29
↓ 10 callersFunctionTimestampMillis
TimestampMillis return a time unix nano.
pulsar/internal/utils.go:32
↓ 10 callersFunctionfindPartitionConsumer
(consumers []*partitionConsumer, msgID MessageID)
pulsar/consumer_impl.go:783
↓ 10 callersFunctiongenMessages
(p Producer, num int, msgFn func(idx int) string)
pulsar/consumer_regex_test.go:431
↓ 10 callersFunctiontimeFromUnixTimestampMillis
(timestamp uint64)
pulsar/impl_message.go:277
↓ 9 callersMethodBrokers
()
pulsaradmin/pkg/admin/admin.go:55
↓ 9 callersMethodGetEntryId
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1528
↓ 9 callersMethodGetLedgerId
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1521
↓ 9 callersMethodGetLocalName
()
pulsaradmin/pkg/utils/topic_name.go:129
↓ 9 callersMethodGetServiceURI
()
pulsar/internal/service_name_resolver.go:34
↓ 9 callersFunctionGetTopicRestPath
(tn *TopicName)
pulsar/internal/topic_name.go:138
↓ 9 callersFunctionIsV2TopicName
(tn *TopicName)
pulsar/internal/topic_name.go:131
↓ 9 callersFunctionLatestMessageID
LatestMessageID returns a messageID that points to the latest message
pulsar/message.go:197
↓ 9 callersMethodName
Name func returns the identifier for this authentication method.
pulsar/auth/provider.go:34
↓ 9 callersFunctionNewAuthenticationAthenz
( providerDomain string, tenantDomain string, tenantService string, privateKey string, keyID string, x50
pulsar/auth/athenz.go:86
↓ 9 callersFunctionParseMessageID
(str string)
pulsaradmin/pkg/utils/message_id.go:46
↓ 9 callersFunctionParseRelativeTimeInSeconds
(relativeTime string)
pulsar/internal/utils.go:50
↓ 9 callersMethodReadUint32
()
pulsar/internal/buffer.go:63
↓ 9 callersMethodReset
(d time.Duration)
oauth2/clock/clock.go:75
↓ 9 callersMethodResolveHost
()
pulsar/internal/service_name_resolver.go:32
↓ 9 callersMethodSkip
(size uint32)
pulsar/internal/buffer.go:48
↓ 9 callersMethodUnsubscribeForce
UnsubscribeForce the consumer, forcefully unsubscribe by disconnecting connected consumers. Unsubscribing will cause the subscription to be deleted,
pulsar/consumer.go:348
↓ 9 callersMethod_setConn
_setConn sets the internal connection field of this partition consumer atomically. Note: should only be called by this partition consumer when a new c
pulsar/consumer_partition.go:2592
↓ 9 callersMethodackCumulative
(batchID int)
pulsar/impl_message.go:446
↓ 9 callersFunctioncheckSuccessful
checkSuccessful checks for a valid response and parses an error
pulsaradmin/pkg/rest/client.go:506
↓ 9 callersFunctioncreateClientWithTC
createClientWithTC creates a new client with a transaction coordinator client to send request
pulsar/transaction_test.go:223
↓ 9 callersMethoddoRequest
(ctx context.Context, r *request)
pulsaradmin/pkg/rest/client.go:71
↓ 9 callersFunctioninitAvroCodec
initAvroCodec returns a Codec used to translate between a byte slice of either binary or textual Avro data and native Go data.
pulsar/schema.go:127
↓ 9 callersFunctionlegacyTopicPolicyInt
(value *int)
pulsaradmin/pkg/admin/topic.go:1108
← previousnext →101–200 of 5,094, ranked by callers