Documentation
¶
Index ¶
- func ConsumeMessages[P any](suite *PulsarTestSuite, ctx context.Context, consumer pulsar.Consumer, ...) (actualPayloads []P)
- func ProduceMessages[P any](suite *PulsarTestSuite, ctx context.Context, producer pulsar.Producer, ...)
- func ProduceObjectsToTopic[P any](suite *PulsarTestSuite, topic connector.TopicName, payloads []P)
- func ProduceToTopic(suite *PulsarTestSuite, topic connector.TopicName, payloads [][]byte)
- func SubscribeToTopic[P any](suite *PulsarTestSuite, topic connector.TopicName, payloads []P, ...) (consumeFunc func() []P)
- type PulsarTestSuite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumeMessages ¶
func ProduceMessages ¶
func ProduceObjectsToTopic ¶
func ProduceObjectsToTopic[P any](suite *PulsarTestSuite, topic connector.TopicName, payloads []P)
func ProduceToTopic ¶
func ProduceToTopic(suite *PulsarTestSuite, topic connector.TopicName, payloads [][]byte)
func SubscribeToTopic ¶
func SubscribeToTopic[P any](suite *PulsarTestSuite, topic connector.TopicName, payloads []P, subscription string) (consumeFunc func() []P)
SubscribeToTopic - subscribe to a topic and returns a function that consumes messages from the topic
Types ¶
type PulsarTestSuite ¶
type PulsarTestSuite struct { suite.Suite DefaultTestConfig config.PulsarConfig Client connector.Client AppPortStart int AdminPortStart int // contains filtered or unexported fields }
func (*PulsarTestSuite) SetupSuite ¶
func (suite *PulsarTestSuite) SetupSuite()
func (*PulsarTestSuite) SetupTest ¶
func (suite *PulsarTestSuite) SetupTest()
func (*PulsarTestSuite) TearDownSuite ¶
func (suite *PulsarTestSuite) TearDownSuite()
func (*PulsarTestSuite) TearDownTest ¶ added in v0.0.10
func (suite *PulsarTestSuite) TearDownTest()
Click to show internal directories.
Click to hide internal directories.