testing

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEOF = event.ErrEOF

Functions

func SortEvents

func SortEvents(events []model.MXPGVKEvent)

SortEvents sorts events by their fields.

Types

type MockReader

type MockReader struct {
	Reads []ReadResult
}

func (*MockReader) Close

func (r *MockReader) Close() error

func (*MockReader) Read

type MockWindowIterator

type MockWindowIterator struct {
	Windows []Window
}

func (*MockWindowIterator) More

func (i *MockWindowIterator) More() bool

func (*MockWindowIterator) Next

type MockWriter

type MockWriter struct {
	Events []model.MXPGVKEvent
}

func (*MockWriter) Write

func (w *MockWriter) Write(e model.MXPGVKEvent) error

type ReadResult

type ReadResult struct {
	Event model.MXPGVKEvent
	Err   error
}

ReadResult is a return value of event.Reader.Read().

type Window

type Window struct {
	Reader event.Reader
	Window time.Range
	Err    error
}

Window is a return value of event.WindowIterator.Next().

Jump to

Keyboard shortcuts

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