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: 2

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