Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultWebServiceURL = "http://localhost:8080" DefaultHTTPTimeOutDuration = 5 * time.Minute ReleaseVersion = "None" )
View Source
const ( PublishTimeHeader = "X-Pulsar-Publish-Time" BatchHeader = "X-Pulsar-Num-Batch-Message" // PropertyPrefix is part of the old protocol for message properties. PropertyPrefix = "X-Pulsar-Property-" // PropertyHeader is part of the new protocol introduced in SNIP-279 // https://github.com/apache/pulsar/pull/20627 // The value is a JSON string representing the properties. PropertyHeader = "X-Pulsar-Property" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Subscriptions() Subscriptions
}
type PulsarClient ¶
type PulsarClient struct {
Client *rest.Client
APIVersion config.APIVersion
}
func NewPulsarClientWithAuthProvider ¶
func NewPulsarClientWithAuthProvider(config *config.Config, authProvider auth.Provider) (*PulsarClient, error)
NewPulsarClientWithAuthProvider create a client with auth provider.
func (*PulsarClient) Subscriptions ¶
func (c *PulsarClient) Subscriptions() Subscriptions
Click to show internal directories.
Click to hide internal directories.