mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

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

func NewEmitter

func NewEmitter() *Emitter

func (*Emitter) Get

func (m *Emitter) Get() []models.Record

func (*Emitter) GetAllEdges added in v0.13.0

func (m *Emitter) GetAllEdges() []*meteorv1beta1.Edge

func (*Emitter) GetAllEntities added in v0.13.0

func (m *Emitter) GetAllEntities() []*meteorv1beta1.Entity

func (*Emitter) Push

func (m *Emitter) Push(record models.Record)

type Extractor

type Extractor struct {
	Plugin
	// contains filtered or unexported fields
}

func NewExtractor

func NewExtractor() *Extractor

func (*Extractor) Extract

func (m *Extractor) Extract(ctx context.Context, emit plugins.Emit) error

func (*Extractor) SetEmit

func (m *Extractor) SetEmit(records []models.Record)

type Plugin

type Plugin struct {
	mock.Mock
}

func (*Plugin) Info

func (m *Plugin) Info() plugins.Info

func (*Plugin) Init

func (m *Plugin) Init(ctx context.Context, config plugins.Config) error

func (*Plugin) Validate

func (m *Plugin) Validate(config plugins.Config) error

type Processor

type Processor struct {
	Plugin
}

func NewProcessor

func NewProcessor() *Processor

func (*Processor) Process

func (m *Processor) Process(ctx context.Context, src models.Record) (models.Record, error)

type Sink

type Sink struct {
	Plugin
}

func NewSink

func NewSink() *Sink

func (*Sink) Close

func (m *Sink) Close() error

func (*Sink) Sink

func (m *Sink) Sink(ctx context.Context, batch []models.Record) error

Jump to

Keyboard shortcuts

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