event

package
v0.0.0-...-e613b9d Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dataflow

func Dataflow(ctx context.Context) error

func ErrorHandler

func ErrorHandler(ctx context.Context, err error) bool

ErrorHandler ...

func GetFanoutEventLogger

func GetFanoutEventLogger(
	ctx context.Context,
	fn func(event.EventWithContexter) ([]event.KeyValueWithContexter, error),
	fnErr func(context.Context, error) bool,
) (
	chan<- event.EventWithContexter,
	<-chan event.KeyValueWithContexter,
)

GetFanoutEventLogger returns new input(chan<- EventEventWithContexter)/output(<-chan EventKeyValueWithContexter) channels that embedded the given 'func(EventEventWithContexter) EventKeyValueWithContexter'.

func GetFanoutSaver

func GetFanoutSaver(
	ctx context.Context,
	fn func(event.KeyValueWithContexter) ([]context.Context, error),
	fnErr func(context.Context, error) bool,
) (
	chan<- event.KeyValueWithContexter,
	<-chan context.Context,
)

GetFanoutSaver returns new input(chan<- EventKeyValueWithContexter)/output(<-chan ContextContext) channels that embedded the given 'func(EventKeyValueWithContexter) ContextContext'.

func GetFanoutStart

func GetFanoutStart(
	ctx context.Context,
	fn func(context.Context) ([]event.EventWithContexter, error),
	fnErr func(context.Context, error) bool,
) (
	chan<- context.Context,
	<-chan event.EventWithContexter,
)

GetFanoutStart returns new input(chan<- ContextContext)/output(<-chan EventEventWithContexter) channels that embedded the given 'func(ContextContext) EventEventWithContexter'.

func GetPipeEventLogger

func GetPipeEventLogger(
	ctx context.Context,
	fn func(event.EventWithContexter) (event.KeyValueWithContexter, error),
	fnErr func(context.Context, error) bool,
) (
	chan<- event.EventWithContexter,
	<-chan event.KeyValueWithContexter,
)

GetPipeEventLogger returns new input(chan<- EventEventWithContexter)/output(<-chan EventKeyValueWithContexter) channels that embedded the given 'func(EventEventWithContexter) EventKeyValueWithContexter'.

func GetPipeSaver

func GetPipeSaver(
	ctx context.Context,
	fn func(event.KeyValueWithContexter) (context.Context, error),
	fnErr func(context.Context, error) bool,
) (
	chan<- event.KeyValueWithContexter,
	<-chan context.Context,
)

GetPipeSaver returns new input(chan<- EventKeyValueWithContexter)/output(<-chan ContextContext) channels that embedded the given 'func(EventKeyValueWithContexter) ContextContext'.

func GetPipeStart

func GetPipeStart(
	ctx context.Context,
	fn func(context.Context) (event.EventWithContexter, error),
	fnErr func(context.Context, error) bool,
) (
	chan<- context.Context,
	<-chan event.EventWithContexter,
)

GetPipeStart returns new input(chan<- ContextContext)/output(<-chan EventEventWithContexter) channels that embedded the given 'func(ContextContext) EventEventWithContexter'.

Types

type EventLoggerGetContexter

type EventLoggerGetContexter interface {
	GetContext() context.Context
}

type Saver

type Saver struct {
	Saver event.Saver
}

func (*Saver) Save

type SaverGetContexter

type SaverGetContexter interface {
	GetContext() context.Context
}

type StartGetContexter

type StartGetContexter interface {
	GetContext() context.Context
}

Jump to

Keyboard shortcuts

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