Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilFunction = errors.New("nil UserFunction passed to Worker")
ErrNilFunction a nil UserFunction is provided via FunctionOptions
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
Function allow users to create custom Workers just with a function
func NewFunction ¶
func NewFunction(opts FunctionOptions) *Function
NewFunction create a Function object with goven options
type FunctionOptions ¶
type FunctionOptions struct {
Func UserFunction
}
FunctionOptions customize a Function Worker
type UserFunction ¶
UserFunction define an user custom modification is safe to return input to avoid allocations if an error is returned Process is aborted a filter can be implemented returning (nil,nil)
Click to show internal directories.
Click to hide internal directories.