Documentation ¶
Index ¶
- func BuildTestReadMessages(count int64, startTime time.Time, keys []string) []isb.ReadMessage
- func BuildTestReadMessagesIntOffset(count int64, startTime time.Time, keys []string) []isb.ReadMessage
- func BuildTestWindowRequests(count int64, startTime time.Time, windowOp window.Operation) []window.TimedWindowRequest
- func BuildTestWriteMessages(count int64, startTime time.Time, keys []string) []isb.Message
- func CopyUDFTestApply(ctx context.Context, readMessage *isb.ReadMessage) ([]*isb.WriteMessage, error)
- func CopyUDFTestApplyStream(ctx context.Context, readMessage *isb.ReadMessage, ...) error
- func ReadMessagesLen(ctx context.Context, options *redis.UniversalOptions, streamName string, ...) bool
- type PayloadForTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTestReadMessages ¶
BuildTestReadMessages builds test isb.ReadMessage which can be used for testing.
func BuildTestReadMessagesIntOffset ¶ added in v0.6.4
func BuildTestReadMessagesIntOffset(count int64, startTime time.Time, keys []string) []isb.ReadMessage
BuildTestReadMessagesIntOffset builds test isb.ReadMessage which can be used for testing.
func BuildTestWindowRequests ¶ added in v1.2.0
func BuildTestWindowRequests(count int64, startTime time.Time, windowOp window.Operation) []window.TimedWindowRequest
BuildTestWindowRequests builds test window.TimedWindowRequest which can be used for testing.
func BuildTestWriteMessages ¶
BuildTestWriteMessages builds test isb.Message which can be used for testing.
func CopyUDFTestApply ¶
func CopyUDFTestApply(ctx context.Context, readMessage *isb.ReadMessage) ([]*isb.WriteMessage, error)
CopyUDFTestApply applies a copy UDF that simply copies the input to output.
func CopyUDFTestApplyStream ¶ added in v0.8.1
func CopyUDFTestApplyStream(ctx context.Context, readMessage *isb.ReadMessage, writeMessageCh chan<- isb.WriteMessage) error
func ReadMessagesLen ¶
func ReadMessagesLen(ctx context.Context, options *redis.UniversalOptions, streamName string, expectedValue int64) bool
ReadMessagesLen is used to test the length of the messages read as they arrive on the stream If a stream already has 5 elements which have been read and then we add another set of elements of 10 the total number would be 15.
Types ¶
type PayloadForTest ¶
PayloadForTest is a dummy payload for testing.