test

package
v0.0.0-...-7b16d43 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TIMELEAP = 200

Variables

This section is empty.

Functions

func GetMockClock

func GetMockClock() *clock.Mock

func ResetClock

func ResetClock(t int64)

Types

type MockSink

type MockSink struct {
	// contains filtered or unexported fields
}

func NewMockSink

func NewMockSink() *MockSink

func (*MockSink) Close

func (m *MockSink) Close(ctx api.StreamContext) error

func (*MockSink) Collect

func (m *MockSink) Collect(ctx api.StreamContext, item interface{}) error

func (*MockSink) Configure

func (m *MockSink) Configure(props map[string]interface{}) error

func (*MockSink) GetResults

func (m *MockSink) GetResults() [][]byte

func (*MockSink) Open

func (m *MockSink) Open(ctx api.StreamContext) error

type MockSource

type MockSource struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewMockSource

func NewMockSource(data []*xsql.Tuple) *MockSource

func (*MockSource) Close

func (m *MockSource) Close(_ api.StreamContext) error

func (*MockSource) Configure

func (m *MockSource) Configure(_ string, _ map[string]interface{}) error

func (*MockSource) GetOffset

func (m *MockSource) GetOffset() (interface{}, error)

func (*MockSource) Open

func (m *MockSource) Open(ctx api.StreamContext, consumer chan<- api.SourceTuple, _ chan<- error)

func (*MockSource) Rewind

func (m *MockSource) Rewind(offset interface{}) error

Jump to

Keyboard shortcuts

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