Documentation ¶
Index ¶
- Variables
- func Finish(fns ...func() error) error
- func FinishVoid(fns ...func())
- func Map(generate GenerateFunc, mapper MapFunc, opts ...Option) chan interface{}
- func MapReduce(generate GenerateFunc, mapper MapperFunc, reducer ReducerFunc, opts ...Option) (interface{}, error)
- func MapReduceVoid(generator GenerateFunc, mapper MapperFunc, reducer VoidReducerFunc, ...) error
- func MapReduceWithSource(source <-chan interface{}, mapper MapperFunc, reducer ReducerFunc, ...) (interface{}, error)
- func MapVoid(generate GenerateFunc, mapper VoidMapFunc, opts ...Option)
- type GenerateFunc
- type MapFunc
- type MapperFunc
- type Option
- type ReducerFunc
- type VoidMapFunc
- type VoidReducerFunc
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancelWithNil = errors.New("mapreduce cancelled with nil")
Functions ¶
func FinishVoid ¶
func FinishVoid(fns ...func())
func Map ¶
func Map(generate GenerateFunc, mapper MapFunc, opts ...Option) chan interface{}
func MapReduce ¶
func MapReduce(generate GenerateFunc, mapper MapperFunc, reducer ReducerFunc, opts ...Option) (interface{}, error)
func MapReduceVoid ¶
func MapReduceVoid(generator GenerateFunc, mapper MapperFunc, reducer VoidReducerFunc, opts ...Option) error
func MapReduceWithSource ¶
func MapReduceWithSource(source <-chan interface{}, mapper MapperFunc, reducer ReducerFunc, opts ...Option) (interface{}, error)
func MapVoid ¶
func MapVoid(generate GenerateFunc, mapper VoidMapFunc, opts ...Option)
Types ¶
type GenerateFunc ¶
type GenerateFunc func(source chan<- interface{})
type MapperFunc ¶
type ReducerFunc ¶
type VoidMapFunc ¶
type VoidMapFunc func(item interface{})
type VoidReducerFunc ¶
type VoidReducerFunc func(pipe <-chan interface{}, cancel func(error))
Click to show internal directories.
Click to hide internal directories.