topic

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 12 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartitionTopics

type PartitionTopics struct {
	NumberOfPartitions int
	PulsarURL          string
	Token              string
	TrustStore         string
	Tenant             string
	Namespace          string
	PartitionTopicName string
	TopicFullname      string
	BaseAdminURL       string
	// contains filtered or unexported fields
}

PartitionTopics data struct is the persistent partition topic name and number of partitions it has

func NewPartitionTopic

func NewPartitionTopic(url, token, trustStore, topicFn, adminURL string, numOfPartitions int) (*PartitionTopics, error)

NewPartitionTopic creates a PartitionTopic test object

func (*PartitionTopics) CreatePartitionTopic

func (pt *PartitionTopics) CreatePartitionTopic() error

CreatePartitionTopic creates a partition topic

func (*PartitionTopics) GetPartitionTopic

func (pt *PartitionTopics) GetPartitionTopic() (bool, error)

GetPartitionTopic gets the partition topic

func (*PartitionTopics) TestPartitionTopic

func (pt *PartitionTopics) TestPartitionTopic(client pulsar.Client) (time.Duration, error)

TestPartitionTopic sends multiple messages and to be verified by multiple consumers

func (*PartitionTopics) VerifyPartitionTopic

func (pt *PartitionTopics) VerifyPartitionTopic() error

VerifyPartitionTopic verifies existence of the partition topic it creates one if it's missing

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL