fanout

package
v0.0.0-...-7501429 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcurrentResponseErrors

func ConcurrentResponseErrors(ctx context.Context, worker func(ctx context.Context, value interface{}) error, parameters ...interface{}) chan error

ConcurrentResponseErrors process with errors channel

func ConcurrentResponseItems

func ConcurrentResponseItems(ctx context.Context, worker func(
	ctx context.Context,
	value interface{},
) (interface{}, error), parameters ...interface{}) chan Item

ConcurrentResponseItems process with items channel

func ReadErrorsChannel

func ReadErrorsChannel(ch chan error) error

ReadErrorsChannel reads error's channel and constructs error

func ReadItemChannel

func ReadItemChannel(ch chan Item) ([]interface{}, error)

ReadItemChannel reads items channel and constructs error

Types

type Item

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

Item is fan out general item

Jump to

Keyboard shortcuts

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