MCPcopy Create free account

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

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

↓ 4 callersMethodGetSubscriptionDispatchRate
GetSubscriptionDispatchRate returns subscription dispatch rate for a topic. Returns nil if the subscription dispatch rate is not configured at the top
pulsaradmin/pkg/admin/topic.go:863
↓ 4 callersMethodGetTopics
GetTopics returns the list of all the topics under a certain namespace
pulsaradmin/pkg/admin/namespace.go:38
↓ 4 callersMethodIsExpectedIntervalFrom
()
pulsar/producer_test.go:2994
↓ 4 callersFunctionIsV2Namespace
(namespace string)
pulsar/internal/namespace_name.go:22
↓ 4 callersMethodLastSequenceID
LastSequenceID get the last sequence id that was published by this producer. This represent either the automatically assigned or custom sequence id (s
pulsar/producer.go:258
↓ 4 callersFunctionMarshalToSizedBuffer
(m proto.Message, out []byte)
pulsar/internal/utils.go:80
↓ 4 callersMethodNackByMsg
(msg Message)
pulsar/impl_message.go:98
↓ 4 callersFunctionNewAuthenticationOAuth2
NewAuthenticationOAuth2 Creates OAuth2 Authentication provider
pulsar/client.go:77
↓ 4 callersFunctionNewAuthenticationToken
NewAuthenticationToken Creates new Authentication provider with specified auth token
pulsar/client.go:43
↓ 4 callersFunctionNewDefaultBackoff
()
pulsar/backoff/backoff.go:45
↓ 4 callersFunctionNewDoubleSchema
(properties map[string]string)
pulsar/schema.go:611
↓ 4 callersFunctionNewFakeClock
NewFakeClock constructs a fake clock set to the provided time.
oauth2/clock/testing/fake_clock.go:50
↓ 4 callersFunctionNewFloatSchema
(properties map[string]string)
pulsar/schema.go:573
↓ 4 callersFunctionNewInt16Schema
(properties map[string]string)
pulsar/schema.go:468
↓ 4 callersFunctionNewInt32Schema
(properties map[string]string)
pulsar/schema.go:503
↓ 4 callersFunctionNewInt64Schema
(properties map[string]string)
pulsar/schema.go:538
↓ 4 callersFunctionNewInt8Schema
(properties map[string]string)
pulsar/schema.go:433
↓ 4 callersFunctionNewOffloadPolicies
()
pulsaradmin/pkg/utils/offload_policies.go:38
↓ 4 callersFunctionNewProtoSchema
NewProtoSchema creates a new ProtoSchema Note: the function will panic if creation of codec fails
pulsar/schema.go:187
↓ 4 callersFunctionNewPulsarClientWithAuthProvider
NewPulsarClientWithAuthProvider create a client with auth provider.
pulsaradmin/pkg/admin/admin.go:87
↓ 4 callersFunctionNewRPCClient
(serviceURL string, pool ConnectionPool, requestTimeout time.Duration, logger log.Logger, metrics *Metrics,
pulsar/internal/rpc_client.go:97
↓ 4 callersFunctionNewSnappyProvider
NewSnappyProvider returns a Provider interface
pulsar/internal/compression/snappy.go:28
↓ 4 callersFunctionNewTokenRetriever
NewTokenRetriever allows a TokenRetriever the internal of a new TokenRetriever to be easily set up
oauth2/authorization_tokenretriever.go:112
↓ 4 callersMethodOnAcknowledge
OnAcknowledge This is called consumer sends the acknowledgment to the broker.
pulsar/consumer_interceptor.go:25
↓ 4 callersFunctionParseSchemaCompatibilityStrategy
(str string)
pulsaradmin/pkg/utils/schema_strategy.go:78
↓ 4 callersMethodPutWithQueryParamsWithContext
( ctx context.Context, endpoint string, in, obj interface{}, params map[string]string, )
pulsaradmin/pkg/rest/client.go:239
↓ 4 callersMethodRead
(size uint32)
pulsar/internal/buffer.go:179
↓ 4 callersMethodRedeliveryCount
RedeliveryCount returns message redelivery count, redelivery count maintain in pulsar broker. When client nack acknowledge messages, broker will dispa
pulsar/message.go:124
↓ 4 callersMethodRelease
Release a permit, returning it to the semaphore. Release a permit, increasing the number of available permits by one. If any threads are trying to ac
pulsar/internal/semaphore.go:46
↓ 4 callersMethodReset
Reset the backoff to the initial state
pulsar/backoff/backoff.go:35
↓ 4 callersMethodResizeIfNeeded
(spaceNeeded uint32)
pulsar/internal/buffer.go:77
↓ 4 callersMethodToken
()
pulsar/auth/athenz_test.go:60
↓ 4 callersMethod_setConn
_setConn sets the internal connection field of this partition producer atomically. Note: should only be called by this partition producer when a new c
pulsar/producer_partition.go:1800
↓ 4 callersMethodcanSendRequest
()
pulsar/transaction_coordinator_client.go:440
↓ 4 callersMethodcasProducerState
set a new producerState and return the last state returns bool if the new state has been set or not
pulsar/producer_partition.go:1595
↓ 4 callersMethodcheckRetriableError
(err error, op any)
pulsar/transaction_coordinator_client.go:185
↓ 4 callersMethodclosed
()
pulsar/internal/connection.go:1112
↓ 4 callersMethodconsumerHandler
(id uint64)
pulsar/internal/connection.go:1190
↓ 4 callersMethodcreateTextFromFiled
(w *multipart.Writer, value string)
pulsaradmin/pkg/admin/functions.go:286
↓ 4 callersMethoddoClose
(reason error)
pulsar/producer_partition.go:1475
↓ 4 callersMethodendTxn
(op *endTxnOp)
pulsar/transaction_coordinator_client.go:301
↓ 4 callersMethodgetConn
()
pulsar/transaction_coordinator_client.go:122
↓ 4 callersFunctiongetErrorFromServerError
(serverError *proto.ServerError)
pulsar/error.go:247
↓ 4 callersMethodgetLastMessageID
()
pulsar/consumer_partition.go:689
↓ 4 callersMethodgetPartitionCount
(consumerName string)
pulsar/consumer_test.go:716
↓ 4 callersMethodgetTopics
(ctx context.Context, endpoint string, out chan<- []string, err chan<- error)
pulsaradmin/pkg/admin/topic.go:1284
↓ 4 callersMethodgreater
(other *messageID)
pulsar/impl_message.go:135
↓ 4 callersMethodhash
()
pulsar/schema.go:72
↓ 4 callersMethodinternalFlushCurrentBatch
()
pulsar/producer_partition.go:866
↓ 4 callersMethodinternalTopicSubscribeToPartitions
()
pulsar/consumer_impl.go:347
↓ 4 callersFunctioninvalidPackageNameError
(completeName string)
pulsaradmin/pkg/utils/package_name.go:37
↓ 4 callersFunctionmockKeyFile
mockKeyFile will mock a temp key file for testing.
pulsar/client_impl_test.go:334
↓ 4 callersFunctionmockKeyFile
mockKeyFile will mock a temp key file for testing.
pulsar/auth/oauth2_test.go:82
↓ 4 callersFunctionmockOAuthServer
mockOAuthServer will mock a oauth service for the tests
pulsar/client_impl_test.go:302
↓ 4 callersFunctionnewClientCredentialsFlow
( options ClientCredentialsFlowOptions, exchanger ClientCredentialsExchanger, grantProvider GrantProvider,
oauth2/client_credentials_flow.go:110
↓ 4 callersMethodnewClientCredentialsRequest
newClientCredentialsRequest builds a new ClientCredentialsExchangeRequest wrapped in an http.Request
oauth2/authorization_tokenretriever.go:195
↓ 4 callersFunctionnewCond
(l sync.Locker)
pulsar/internal/channel_cond.go:34
↓ 4 callersFunctionnewDlqRouter
(client Client, policy *DLQPolicy, topicName, subscriptionName, consumerName string, backOffPolicyFunc func()
pulsar/dlq_router.go:45
↓ 4 callersFunctionnewNegativeAcksTracker
(rc redeliveryConsumer, delay time.Duration, nackBackoffPolicy NackBackoffPolicy, logger log.Logger, nackPrec
pulsar/negative_acks_tracker.go:49
↓ 4 callersFunctionnewRetryRouter
(client Client, policy *DLQPolicy, retryEnabled bool, backOffPolicyFunc func() backoff.Policy, logger log.Log
pulsar/retry_router.go:59
↓ 4 callersFunctionnewTestBackoffPolicy
(minBackoff, maxBackoff time.Duration)
pulsar/reader_test.go:893
↓ 4 callersMethodregisterIncomingRequest
()
pulsar/internal/connection.go:654
↓ 4 callersFunctionsafeRespClose
safeRespClose is used to close a response body
pulsar/internal/http_client.go:310
↓ 4 callersMethodscopedQueryParams
(params map[string]string)
pulsaradmin/pkg/admin/topic_policies.go:175
↓ 4 callersMethodsetProducerState
(state producerState)
pulsar/producer_partition.go:1589
↓ 4 callersFunctiontransactionStats
(id *TxnID)
pulsar/helper_for_test.go:160
↓ 4 callersMethodtryDetermineMessage
(value ...any)
pulsar/log/wrapper_slog.go:120
↓ 4 callersFunctiontxnStateErrorMessage
nolint:unparam
pulsar/transaction_impl.go:253
↓ 4 callersFunctionverifyTopicProperties
(t *testing.T, admin Client, topic *utils.TopicName, expected map[string]string)
pulsaradmin/pkg/admin/topic_test.go:78
↓ 3 callersMethodAdd
(c Closable)
pulsar/internal/client_handlers.go:34
↓ 3 callersMethodAddMessage
(msg Message)
pulsar/negative_acks_tracker.go:133
↓ 3 callersMethodClone
Returns a new instance of the same provider, with the same exact configuration
pulsar/internal/compression/compression.go:46
↓ 3 callersMethodClose
Close the producer and releases resources allocated No more writes will be accepted from this producer. Waits until all pending write request are pers
pulsar/producer.go:270
↓ 3 callersMethodClose
Close all the connections in the pool
pulsar/internal/connection_pool.go:44
↓ 3 callersMethodCompareAndPoll
CompareAndPoll compare the first item and poll it if meet the conditions
pulsar/internal/blocking_queue.go:40
↓ 3 callersFunctionConvertGetSchemaResponseToSchemaInfoWithVersion
(tn *TopicName, response GetSchemaResponse)
pulsaradmin/pkg/utils/schema_util.go:91
↓ 3 callersMethodCreateSchemaByPayload
CreateSchemaByPayload creates a schema for a given <tt>topic</tt>
pulsaradmin/pkg/admin/schema.go:49
↓ 3 callersMethodDeleteConsumeHandler
(id uint64)
pulsar/internal/connection.go:86
↓ 3 callersMethodEncrypt
Encrypt payload using encryption keys and add encrypted data key to message metadata. Here data key is encrypted using public key
pulsar/crypto/default_message_crypto.go:140
↓ 3 callersFunctionExtractSpanContextFromConsumerMessage
(message pulsar.ConsumerMessage)
pulsar/internal/pulsartracing/message_carrier_util.go:52
↓ 3 callersMethodForceDeleteSchema
ForceDeleteSchema force deletes the schema associated with a given <tt>topic</tt>
pulsaradmin/pkg/admin/schema.go:46
↓ 3 callersMethodForceReserveMemory
(size int64)
pulsar/internal/memory_limit_controller.go:29
↓ 3 callersFunctionGetAndAdd
GetAndAdd perform atomic read and update
pulsar/internal/utils.go:41
↓ 3 callersMethodGetBatchIndex
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1542
↓ 3 callersMethodGetBatchSize
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1556
↓ 3 callersMethodGetBookieAffinityGroup
GetBookieAffinityGroup returns bookie affinity group configured for a namespace. Returns nil if the bookie affinity group is not configured at the nam
pulsaradmin/pkg/admin/namespace.go:469
↓ 3 callersMethodGetChunkId
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:2081
↓ 3 callersMethodGetClientCredentials
()
oauth2/client_credentials_flow.go:41
↓ 3 callersMethodGetConnection
GetConnection get a connection from ConnectionPool.
pulsar/internal/connection_pool.go:35
↓ 3 callersMethodGetDeduplicationStatus
GetDeduplicationStatus returns the deduplication policy for a topic
pulsaradmin/pkg/admin/topic.go:628
↓ 3 callersMethodGetEncryptionKeys
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1976
↓ 3 callersMethodGetEventTime
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:1969
↓ 3 callersMethodGetGrant
(audience string, options *ClientCredentialsFlowOptions)
oauth2/client_credentials_flow.go:51
↓ 3 callersMethodGetInactiveTopicPolicies
GetInactiveTopicPolicies returns the inactive topic policies on a topic @param topic topicName struct @param applied when set to true, function will
pulsaradmin/pkg/admin/topic.go:782
↓ 3 callersMethodGetLastMessageID
GetLastMessageID get the last message id available for consume. It only works for single topic reader. It will return an error when the reader is the
pulsar/reader.go:142
↓ 3 callersMethodGetMaxConsumersPerTopic
GetMaxConsumersPerTopic returns the maxProducersPerTopic for a namespace. Returns -1 if not set
pulsaradmin/pkg/admin/namespace.go:320
↓ 3 callersMethodGetMaxProducersPerTopic
GetMaxProducersPerTopic returns the maxProducersPerTopic for a namespace. Returns -1 if not set
pulsaradmin/pkg/admin/namespace.go:342
↓ 3 callersMethodGetNamespaceMessageTTL
GetNamespaceMessageTTL returns the message TTL for a namespace. Returns -1 if not set
pulsaradmin/pkg/admin/namespace.go:92
↓ 3 callersMethodGetOffloadDeleteLag
GetOffloadDeleteLag returns the offload deletion lag for a namespace, in milliseconds. Returns -1 if not set
pulsaradmin/pkg/admin/namespace.go:246
↓ 3 callersMethodGetProxyThroughServiceUrl
()
pulsar/internal/pulsar_proto/PulsarApi.pb.go:3433
← previousnext →401–500 of 5,094, ranked by callers