mock

package
v0.0.0-...-9b27197 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type string
}

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(flagPrefix string, f *flag.FlagSet)

type Plugin

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

func NewPlugin

func NewPlugin(cfg Config, log log.Logger) (*Plugin, error)

func (*Plugin) Batches

func (m *Plugin) Batches(recs []*record.Record) []*batch.Batch

func (*Plugin) Dispose

func (p *Plugin) Dispose(ctx context.Context) error

func (*Plugin) Exec

func (m *Plugin) Exec(ctx context.Context, rec *record.Record, stream io.Reader) error

func (*Plugin) Filter

func (m *Plugin) Filter(recs []*record.Record) []*record.Record

func (*Plugin) GetVersion

func (m *Plugin) GetVersion(ctx context.Context) (int, error)

func (*Plugin) UpgradeVersion

func (m *Plugin) UpgradeVersion(ctx context.Context, version int) error

Jump to

Keyboard shortcuts

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