MCPcopy Create free account

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

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

↓ 9 callersFunctionnewAckTracker
(size uint)
pulsar/impl_message.go:412
↓ 9 callersFunctionnewSpyConnection
()
pulsar/consumer_partition_test.go:637
↓ 9 callersFunctionnewTestMetrics
()
pulsar/consumer_partition_test.go:73
↓ 9 callersFunctionnewTrackingMessageID
(ledgerID int64, entryID int64, batchIdx int32, partitionIdx int32, batchSize int32, tracker *ackTracker)
pulsar/impl_message.go:239
↓ 9 callersFunctionsafeRespClose
safeRespClose is used to close a response body
pulsaradmin/pkg/rest/client.go:562
↓ 8 callersMethodAckID
(msgID MessageID)
pulsar/consumer_partition.go:788
↓ 8 callersMethodAuthorize
Authorize obtains an authorization grant based on an OAuth 2.0 authorization flow. The method returns a grant which may contain an initial access toke
oauth2/auth.go:39
↓ 8 callersMethodBorrow
()
pulsar/primitiveSerDe.go:40
↓ 8 callersFunctionConvertFromStringMap
ConvertFromStringMap convert a string map to a KeyValue []byte
pulsar/internal/commands.go:368
↓ 8 callersMethodCurrentUsagePercent
()
pulsar/internal/memory_limit_controller.go:32
↓ 8 callersMethodGetNumMessagesInBatch
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1962
↓ 8 callersMethodGetProperties
GetProperties returns the properties of a topic
pulsaradmin/pkg/admin/topic.go:83
↓ 8 callersMethodGetSchemaCompatibilityStrategy
GetSchemaCompatibilityStrategy returns the applied schema compatibility strategy for a topic.
pulsaradmin/pkg/admin/topic.go:1038
↓ 8 callersMethodGetSequenceId
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:3678
↓ 8 callersMethodIsExpectedIntervalFrom
(startTime time.Time)
pulsar/reader_test.go:926
↓ 8 callersFunctionNewDefaultRouter
NewDefaultRouter set the message routing mode for the partitioned producer. Default routing mode is round-robin routing if no partition key is specifi
pulsar/default_router.go:38
↓ 8 callersFunctionNewJSONSchema
NewJSONSchema creates a new JSONSchema Note: the function will panic if creation of codec fails
pulsar/schema.go:137
↓ 8 callersFunctionNewMemoryLimitController
NewMemoryLimitController threshold valid range is (0, 1.0)
pulsar/internal/memory_limit_controller.go:65
↓ 8 callersFunctionNewMessageMetadataSupplier
(messageMetadata *pb.MessageMetadata)
pulsar/crypto/message_metadata.go:43
↓ 8 callersMethodPeek
Peek return the first item without dequeing, return nil if queue is empty
pulsar/internal/blocking_queue.go:43
↓ 8 callersMethodRefresh
Refresh refreshes an authorization grant to contain a fresh access token
oauth2/auth.go:45
↓ 8 callersMethodReleaseMemory
(size int64)
pulsar/internal/memory_limit_controller.go:30
↓ 8 callersMethodSeek
Seek resets the subscription associated with this reader to a specific message id. The message id can either be a specific message or represent the fi
pulsar/reader.go:128
↓ 8 callersMethodUint32
(r io.Reader, byteOrder binary.ByteOrder)
pulsar/primitiveSerDe.go:79
↓ 8 callersFunctionbaseCommand
(cmdType pb.BaseCommand_Type, msg proto.Message)
pulsar/internal/commands.go:182
↓ 8 callersMethodcompleted
()
pulsar/impl_message.go:466
↓ 8 callersMethodhandleAuthTokensResponse
handleAuthTokensResponse takes care of checking an http.Response that has auth tokens for errors and parsing the raw body to a TokenResult struct
oauth2/authorization_tokenretriever.go:242
↓ 8 callersFunctionnewMessageID
(ledgerID int64, entryID int64, batchIdx int32, partitionIdx int32, batchSize int32)
pulsar/impl_message.go:219
↓ 8 callersMethodnewRequest
(method, path string)
pulsaradmin/pkg/rest/client.go:48
↓ 8 callersMethodset
(msgID *trackingMessageID)
pulsar/consumer_partition.go:346
↓ 7 callersMethodAckIDCumulative
AckIDCumulative the reception of all the messages in the stream up to (and including) the provided message, identified by its MessageID
pulsar/consumer.go:389
↓ 7 callersMethodCompress
Compress a []byte, the param is a []byte with the uncompressed content. The reader/writer indexes will not be modified. The return is a []byte with th
pulsar/internal/compression/compression.go:38
↓ 7 callersMethodDecompress
Decompress a []byte. The buffer needs to have been compressed with the matching Encoder. The src is compressed content. If dst is passed, the decompre
pulsar/internal/compression/compression.go:43
↓ 7 callersMethodDel
(c Closable)
pulsar/internal/client_handlers.go:40
↓ 7 callersMethodGetMaxConsumersPerSubscription
GetMaxConsumersPerSubscription returns max consumers per subscription for a topic. Returns -1 if not set
pulsaradmin/pkg/admin/topic.go:882
↓ 7 callersMethodGetMaxMessageSize
GetMaxMessageSize returns max message size for a topic. Returns -1 if not set
pulsaradmin/pkg/admin/topic.go:900
↓ 7 callersMethodGetMessagesByID
GetMessagesByID gets messages by its ledgerID and entryID
pulsaradmin/pkg/admin/subscription.go:123
↓ 7 callersMethodGetName
()
pulsaradmin/pkg/utils/package_name.go:106
↓ 7 callersMethodGetPersistence
GetPersistence returns the persistence policies for a topic. Returns nil if the persistence policy is not configured at the topic level.
pulsaradmin/pkg/admin/topic.go:549
↓ 7 callersMethodGetRetention
GetRetention returns the retention configuration for a topic. Returns nil if the retention policy is not configured at the topic level. @param topic
pulsaradmin/pkg/admin/topic.go:665
↓ 7 callersMethodGetTopicsOfNamespace
GetTopicsOfNamespace returns all the topics name for a given namespace.
pulsar/internal/lookup_service.go:71
↓ 7 callersMethodGetType
()
pulsaradmin/pkg/utils/package_name.go:94
↓ 7 callersMethodMessageReceived
(response *pb.CommandMessage, headersAndPayload internal.Buffer)
pulsar/consumer_partition.go:1242
↓ 7 callersFunctionNewLoggerWithSlog
(logger *slog.Logger)
pulsar/log/wrapper_slog.go:106
↓ 7 callersFunctionNewMessageReaderFromArray
(headersAndPayload []byte)
pulsar/internal/commands.go:60
↓ 7 callersMethodPeekLast
PeekLast return last item in queue without dequeing, return nil if queue is empty
pulsar/internal/blocking_queue.go:46
↓ 7 callersMethodPutUint32
(n uint32, writerIdx uint32)
pulsar/internal/buffer.go:74
↓ 7 callersMethodPutWithMultiPartWithContext
( ctx context.Context, endpoint string, body io.Reader, contentType string, )
pulsaradmin/pkg/rest/client.go:307
↓ 7 callersMethodReadMessage
()
pulsar/internal/commands.go:144
↓ 7 callersMethodReadMessageMetadata
()
pulsar/internal/commands.go:96
↓ 7 callersMethodReconsumeLater
ReconsumeLater mark a message for redelivery after custom delay
pulsar/consumer.go:392
↓ 7 callersMethodRoundTrip
(req *http.Request)
pulsar/auth/provider.go:48
↓ 7 callersMethodSeekByTime
SeekByTime resets the subscription associated with this reader to a specific message publish time. Note: this operation can only be done on non-parti
pulsar/reader.go:138
↓ 7 callersMethodTake
Take dequeue one item, block until it's available
pulsar/internal/blocking_queue.go:34
↓ 7 callersMethodWriteUint32
(n uint32)
pulsar/internal/buffer.go:66
↓ 7 callersMethodWriterIndex
()
pulsar/internal/buffer.go:68
↓ 7 callersFunctionassertTopicSchemaCompatibilityStrategyEventually
( t *testing.T, getter func() (utils.SchemaCompatibilityStrategy, error), expected utils.SchemaCompatibilit
pulsaradmin/pkg/admin/topic_test.go:329
↓ 7 callersMethodcreateStringFromField
(w *multipart.Writer, value string)
pulsaradmin/pkg/admin/functions.go:279
↓ 7 callersMethoddiscover
()
pulsar/consumer_regex.go:374
↓ 7 callersFunctionfilterTopics
(topics []string, regex *regexp.Regexp)
pulsar/consumer_regex.go:503
↓ 7 callersMethodgetProducer
(schema Schema)
pulsar/dlq_router.go:152
↓ 7 callersMethodisClosingOrClosed
()
pulsar/producer_partition.go:1584
↓ 7 callersMethodsendIndividualAck
(msgID MessageID)
pulsar/consumer_partition.go:759
↓ 7 callersMethodsetConsumerState
(state consumerState)
pulsar/consumer_partition.go:1026
↓ 6 callersMethodAcquire
Acquire a permit, if one is available and returns immediately, reducing the number of available permits by one.
pulsar/internal/semaphore.go:30
↓ 6 callersMethodDelete
Delete deletes a topic, this function can delete both partitioned or non-partitioned topic @param topic topicName struct @param force delete topic fo
pulsaradmin/pkg/admin/topic.go:109
↓ 6 callersMethodEncryptionKeys
EncryptionKeys read all the encryption keys from the MessageMetadata
pulsar/crypto/message_metadata.go:27
↓ 6 callersMethodGetBrokerServiceUrl
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:4533
↓ 6 callersMethodGetBrokerServiceUrlTls
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:4540
↓ 6 callersMethodGetCompactionThreshold
GetCompactionThreshold returns the compaction threshold for a topic. Returns -1 if not set i.e. The maximum number of bytes can have before compactio
pulsaradmin/pkg/admin/topic.go:700
↓ 6 callersMethodGetConsumerId
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:4019
↓ 6 callersFunctionGetOIDCWellKnownEndpointsFromIssuerURL
GetOIDCWellKnownEndpointsFromIssuerURL gets the well known endpoints for the passed in issuer url
oauth2/oidc_endpoint_provider.go:38
↓ 6 callersMethodGetPartitionedTopicMetadata
GetPartitionedTopicMetadata perform a CommandPartitionedTopicMetadata request for the given topic, returns the CommandPartitionedTopicMetadataResponse
pulsar/internal/lookup_service.go:68
↓ 6 callersMethodGetStats
GetStats returns the stats for the topic. All the rates are computed over a 1-minute window and are relative the last completed 1-minute period
pulsaradmin/pkg/admin/topic.go:257
↓ 6 callersMethodGetUuid
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:2060
↓ 6 callersMethodGetValue
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1618
↓ 6 callersFunctionIsNilFixed
(i interface{})
pulsaradmin/pkg/utils/utils.go:30
↓ 6 callersMethodIterateUnsafe
IterateUnsafe iterates the items in the queue without blocking the queue
pulsar/internal/blocking_queue.go:55
↓ 6 callersMethodLookup
Lookup returns the broker URL that serves the topic
pulsaradmin/pkg/admin/topic.go:219
↓ 6 callersMethodLookupService
(URL string)
pulsar/internal/rpc_client.go:77
↓ 6 callersMethodNackID
NackID acknowledges the failure to process a single message. When a message is "negatively acked" it will be marked for redelivery after some fixed d
pulsar/consumer.go:413
↓ 6 callersFunctionNewAuthenticationOAuth2WithParams
NewAuthenticationOAuth2WithParams return a interface of Provider with string map.
pulsar/auth/oauth2.go:53
↓ 6 callersFunctionNewAuthenticationToken
NewAuthenticationToken return a interface of Provider with a string token.
pulsaradmin/pkg/admin/auth/token.go:48
↓ 6 callersFunctionNewNoopDecryptor
()
pulsar/internal/crypto/noop_decryptor.go:28
↓ 6 callersMethodNewTimer
(d time.Duration)
oauth2/clock/clock.go:28
↓ 6 callersMethodPoll
Poll dequeue one item, return nil if queue is empty
pulsar/internal/blocking_queue.go:37
↓ 6 callersFunctionReadElements
(r io.Reader, elements ...interface{})
pulsar/primitiveSerDe.go:204
↓ 6 callersMethodRoundTrip
(req *http.Request)
pulsaradmin/pkg/admin/auth/provider.go:30
↓ 6 callersMethodTerminate
Terminate terminates the topic and prevent any more messages being published on it
pulsaradmin/pkg/admin/topic.go:357
↓ 6 callersFunctionTopicPoliciesOf
TopicPoliciesOf returns a scoped topic policy client when the provided admin client supports it.
pulsaradmin/pkg/admin/topic_policies.go:143
↓ 6 callersMethodTryAcquire
Try to acquire a permit. The method will return immediately with a `true` if it was possible to acquire a permit and `false` otherwise.
pulsar/internal/semaphore.go:35
↓ 6 callersMethodUpdateServiceURL
(serviceURL string)
pulsar/internal/service_name_resolver.go:33
↓ 6 callersMethodackCumulative
(id MessageID)
pulsar/ack_grouping_tracker_test.go:75
↓ 6 callersMethodaddCumulative
(id MessageID)
pulsar/ack_grouping_tracker.go:32
↓ 6 callersFunctionassertCredentials
(t *testing.T, keyfile string, expected *KeyFile)
oauth2/client_credentials_provider_test.go:74
↓ 6 callersMethodcheckMsgIDPartition
(msgID MessageID)
pulsar/consumer_zero_queue.go:165
↓ 6 callersFunctionconvertToOAuth2Token
(token *TokenResult, clock clock.Clock)
oauth2/auth.go:100
↓ 6 callersMethodcreateStringFromField
(w *multipart.Writer, value string)
pulsaradmin/pkg/admin/sources.go:171
↓ 6 callersMethodcreateStringFromField
(w *multipart.Writer, value string)
pulsaradmin/pkg/admin/sinks.go:172
↓ 6 callersMethoddiscardCorruptedMessage
(msgID *pb.MessageIdData, validationError pb.CommandAck_ValidationError)
pulsar/consumer_partition.go:2517
← previousnext →201–300 of 5,094, ranked by callers