eq_mould

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorListener

type ErrorListener func(err error, mouldId, batchId string, p interface{})

type Mould

type Mould interface {
	// Enqueue data
	Pour(p interface{})

	// Process the data
	Process(b eq_bundle.Barrel)

	// With batchId
	Batch(batchId string) Mould

	// Mould identifier
	MouldId() string
}

func New

func New(mouldId string, s eq_bundle.Bundle, ehs []ErrorListener, f interface{}, opts Opts, ctx ...interface{}) Mould

type Opt

type Opt func(o Opts) Opts

type Opts

type Opts struct {
	Verbose bool `json:"verbose"`
}

func (Opts) Apply

func (z Opts) Apply(opts []Opt) Opts

Jump to

Keyboard shortcuts

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