Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/pulsar-client-go
/ functions
Functions
5,094 in github.com/apache/pulsar-client-go
⨍
Functions
5,094
◇
Types & classes
637
↓ 9 callers
Function
newAckTracker
(size uint)
pulsar/impl_message.go:412
↓ 9 callers
Function
newSpyConnection
()
pulsar/consumer_partition_test.go:637
↓ 9 callers
Function
newTestMetrics
()
pulsar/consumer_partition_test.go:73
↓ 9 callers
Function
newTrackingMessageID
(ledgerID int64, entryID int64, batchIdx int32, partitionIdx int32, batchSize int32, tracker *ackTracker)
pulsar/impl_message.go:239
↓ 9 callers
Function
safeRespClose
safeRespClose is used to close a response body
pulsaradmin/pkg/rest/client.go:562
↓ 8 callers
Method
AckID
(msgID MessageID)
pulsar/consumer_partition.go:788
↓ 8 callers
Method
Authorize
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 callers
Method
Borrow
()
pulsar/primitiveSerDe.go:40
↓ 8 callers
Function
ConvertFromStringMap
ConvertFromStringMap convert a string map to a KeyValue []byte
pulsar/internal/commands.go:368
↓ 8 callers
Method
CurrentUsagePercent
()
pulsar/internal/memory_limit_controller.go:32
↓ 8 callers
Method
GetNumMessagesInBatch
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1962
↓ 8 callers
Method
GetProperties
GetProperties returns the properties of a topic
pulsaradmin/pkg/admin/topic.go:83
↓ 8 callers
Method
GetSchemaCompatibilityStrategy
GetSchemaCompatibilityStrategy returns the applied schema compatibility strategy for a topic.
pulsaradmin/pkg/admin/topic.go:1038
↓ 8 callers
Method
GetSequenceId
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:3678
↓ 8 callers
Method
IsExpectedIntervalFrom
(startTime time.Time)
pulsar/reader_test.go:926
↓ 8 callers
Function
NewDefaultRouter
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 callers
Function
NewJSONSchema
NewJSONSchema creates a new JSONSchema Note: the function will panic if creation of codec fails
pulsar/schema.go:137
↓ 8 callers
Function
NewMemoryLimitController
NewMemoryLimitController threshold valid range is (0, 1.0)
pulsar/internal/memory_limit_controller.go:65
↓ 8 callers
Function
NewMessageMetadataSupplier
(messageMetadata *pb.MessageMetadata)
pulsar/crypto/message_metadata.go:43
↓ 8 callers
Method
Peek
Peek return the first item without dequeing, return nil if queue is empty
pulsar/internal/blocking_queue.go:43
↓ 8 callers
Method
Refresh
Refresh refreshes an authorization grant to contain a fresh access token
oauth2/auth.go:45
↓ 8 callers
Method
ReleaseMemory
(size int64)
pulsar/internal/memory_limit_controller.go:30
↓ 8 callers
Method
Seek
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 callers
Method
Uint32
(r io.Reader, byteOrder binary.ByteOrder)
pulsar/primitiveSerDe.go:79
↓ 8 callers
Function
baseCommand
(cmdType pb.BaseCommand_Type, msg proto.Message)
pulsar/internal/commands.go:182
↓ 8 callers
Method
completed
()
pulsar/impl_message.go:466
↓ 8 callers
Method
handleAuthTokensResponse
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 callers
Function
newMessageID
(ledgerID int64, entryID int64, batchIdx int32, partitionIdx int32, batchSize int32)
pulsar/impl_message.go:219
↓ 8 callers
Method
newRequest
(method, path string)
pulsaradmin/pkg/rest/client.go:48
↓ 8 callers
Method
set
(msgID *trackingMessageID)
pulsar/consumer_partition.go:346
↓ 7 callers
Method
AckIDCumulative
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 callers
Method
Compress
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 callers
Method
Decompress
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 callers
Method
Del
(c Closable)
pulsar/internal/client_handlers.go:40
↓ 7 callers
Method
GetMaxConsumersPerSubscription
GetMaxConsumersPerSubscription returns max consumers per subscription for a topic. Returns -1 if not set
pulsaradmin/pkg/admin/topic.go:882
↓ 7 callers
Method
GetMaxMessageSize
GetMaxMessageSize returns max message size for a topic. Returns -1 if not set
pulsaradmin/pkg/admin/topic.go:900
↓ 7 callers
Method
GetMessagesByID
GetMessagesByID gets messages by its ledgerID and entryID
pulsaradmin/pkg/admin/subscription.go:123
↓ 7 callers
Method
GetName
()
pulsaradmin/pkg/utils/package_name.go:106
↓ 7 callers
Method
GetPersistence
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 callers
Method
GetRetention
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 callers
Method
GetTopicsOfNamespace
GetTopicsOfNamespace returns all the topics name for a given namespace.
pulsar/internal/lookup_service.go:71
↓ 7 callers
Method
GetType
()
pulsaradmin/pkg/utils/package_name.go:94
↓ 7 callers
Method
MessageReceived
(response *pb.CommandMessage, headersAndPayload internal.Buffer)
pulsar/consumer_partition.go:1242
↓ 7 callers
Function
NewLoggerWithSlog
(logger *slog.Logger)
pulsar/log/wrapper_slog.go:106
↓ 7 callers
Function
NewMessageReaderFromArray
(headersAndPayload []byte)
pulsar/internal/commands.go:60
↓ 7 callers
Method
PeekLast
PeekLast return last item in queue without dequeing, return nil if queue is empty
pulsar/internal/blocking_queue.go:46
↓ 7 callers
Method
PutUint32
(n uint32, writerIdx uint32)
pulsar/internal/buffer.go:74
↓ 7 callers
Method
PutWithMultiPartWithContext
( ctx context.Context, endpoint string, body io.Reader, contentType string, )
pulsaradmin/pkg/rest/client.go:307
↓ 7 callers
Method
ReadMessage
()
pulsar/internal/commands.go:144
↓ 7 callers
Method
ReadMessageMetadata
()
pulsar/internal/commands.go:96
↓ 7 callers
Method
ReconsumeLater
ReconsumeLater mark a message for redelivery after custom delay
pulsar/consumer.go:392
↓ 7 callers
Method
RoundTrip
(req *http.Request)
pulsar/auth/provider.go:48
↓ 7 callers
Method
SeekByTime
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 callers
Method
Take
Take dequeue one item, block until it's available
pulsar/internal/blocking_queue.go:34
↓ 7 callers
Method
WriteUint32
(n uint32)
pulsar/internal/buffer.go:66
↓ 7 callers
Method
WriterIndex
()
pulsar/internal/buffer.go:68
↓ 7 callers
Function
assertTopicSchemaCompatibilityStrategyEventually
( t *testing.T, getter func() (utils.SchemaCompatibilityStrategy, error), expected utils.SchemaCompatibilit
pulsaradmin/pkg/admin/topic_test.go:329
↓ 7 callers
Method
createStringFromField
(w *multipart.Writer, value string)
pulsaradmin/pkg/admin/functions.go:279
↓ 7 callers
Method
discover
()
pulsar/consumer_regex.go:374
↓ 7 callers
Function
filterTopics
(topics []string, regex *regexp.Regexp)
pulsar/consumer_regex.go:503
↓ 7 callers
Method
getProducer
(schema Schema)
pulsar/dlq_router.go:152
↓ 7 callers
Method
isClosingOrClosed
()
pulsar/producer_partition.go:1584
↓ 7 callers
Method
sendIndividualAck
(msgID MessageID)
pulsar/consumer_partition.go:759
↓ 7 callers
Method
setConsumerState
(state consumerState)
pulsar/consumer_partition.go:1026
↓ 6 callers
Method
Acquire
Acquire a permit, if one is available and returns immediately, reducing the number of available permits by one.
pulsar/internal/semaphore.go:30
↓ 6 callers
Method
Delete
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 callers
Method
EncryptionKeys
EncryptionKeys read all the encryption keys from the MessageMetadata
pulsar/crypto/message_metadata.go:27
↓ 6 callers
Method
GetBrokerServiceUrl
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:4533
↓ 6 callers
Method
GetBrokerServiceUrlTls
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:4540
↓ 6 callers
Method
GetCompactionThreshold
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 callers
Method
GetConsumerId
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:4019
↓ 6 callers
Function
GetOIDCWellKnownEndpointsFromIssuerURL
GetOIDCWellKnownEndpointsFromIssuerURL gets the well known endpoints for the passed in issuer url
oauth2/oidc_endpoint_provider.go:38
↓ 6 callers
Method
GetPartitionedTopicMetadata
GetPartitionedTopicMetadata perform a CommandPartitionedTopicMetadata request for the given topic, returns the CommandPartitionedTopicMetadataResponse
pulsar/internal/lookup_service.go:68
↓ 6 callers
Method
GetStats
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 callers
Method
GetUuid
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:2060
↓ 6 callers
Method
GetValue
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1618
↓ 6 callers
Function
IsNilFixed
(i interface{})
pulsaradmin/pkg/utils/utils.go:30
↓ 6 callers
Method
IterateUnsafe
IterateUnsafe iterates the items in the queue without blocking the queue
pulsar/internal/blocking_queue.go:55
↓ 6 callers
Method
Lookup
Lookup returns the broker URL that serves the topic
pulsaradmin/pkg/admin/topic.go:219
↓ 6 callers
Method
LookupService
(URL string)
pulsar/internal/rpc_client.go:77
↓ 6 callers
Method
NackID
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 callers
Function
NewAuthenticationOAuth2WithParams
NewAuthenticationOAuth2WithParams return a interface of Provider with string map.
pulsar/auth/oauth2.go:53
↓ 6 callers
Function
NewAuthenticationToken
NewAuthenticationToken return a interface of Provider with a string token.
pulsaradmin/pkg/admin/auth/token.go:48
↓ 6 callers
Function
NewNoopDecryptor
()
pulsar/internal/crypto/noop_decryptor.go:28
↓ 6 callers
Method
NewTimer
(d time.Duration)
oauth2/clock/clock.go:28
↓ 6 callers
Method
Poll
Poll dequeue one item, return nil if queue is empty
pulsar/internal/blocking_queue.go:37
↓ 6 callers
Function
ReadElements
(r io.Reader, elements ...interface{})
pulsar/primitiveSerDe.go:204
↓ 6 callers
Method
RoundTrip
(req *http.Request)
pulsaradmin/pkg/admin/auth/provider.go:30
↓ 6 callers
Method
Terminate
Terminate terminates the topic and prevent any more messages being published on it
pulsaradmin/pkg/admin/topic.go:357
↓ 6 callers
Function
TopicPoliciesOf
TopicPoliciesOf returns a scoped topic policy client when the provided admin client supports it.
pulsaradmin/pkg/admin/topic_policies.go:143
↓ 6 callers
Method
TryAcquire
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 callers
Method
UpdateServiceURL
(serviceURL string)
pulsar/internal/service_name_resolver.go:33
↓ 6 callers
Method
ackCumulative
(id MessageID)
pulsar/ack_grouping_tracker_test.go:75
↓ 6 callers
Method
addCumulative
(id MessageID)
pulsar/ack_grouping_tracker.go:32
↓ 6 callers
Function
assertCredentials
(t *testing.T, keyfile string, expected *KeyFile)
oauth2/client_credentials_provider_test.go:74
↓ 6 callers
Method
checkMsgIDPartition
(msgID MessageID)
pulsar/consumer_zero_queue.go:165
↓ 6 callers
Function
convertToOAuth2Token
(token *TokenResult, clock clock.Clock)
oauth2/auth.go:100
↓ 6 callers
Method
createStringFromField
(w *multipart.Writer, value string)
pulsaradmin/pkg/admin/sources.go:171
↓ 6 callers
Method
createStringFromField
(w *multipart.Writer, value string)
pulsaradmin/pkg/admin/sinks.go:172
↓ 6 callers
Method
discardCorruptedMessage
(msgID *pb.MessageIdData, validationError pb.CommandAck_ValidationError)
pulsar/consumer_partition.go:2517
← previous
next →
201–300 of 5,094, ranked by callers