Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SplitFilterWrongFormatError = errors.New("input data should be string")
View Source
var SumFilterWrongFormatError = errors.New("input data should be []int")
View Source
var ToIntFilterWrongFormatError = errors.New("input data should be []string")
*
- @author wjj
- @date 2020/9/8 1:40 上午
- @description
Functions ¶
This section is empty.
Types ¶
type Filter ¶
Filter interface is the definition of the data processing components Pipe-Filter structure
type Request ¶
type Request interface { }
*
- @author wjj
- @date 2020/9/8 1:35 上午
- @description
Request is the input of filter
type SplitFilter ¶
type SplitFilter struct {
// contains filtered or unexported fields
}
func NewSplitFilter ¶
func NewSplitFilter(delimiter string) *SplitFilter
type StraightPipeline ¶
StraightPipeline is composed of the filters, and the filters are piled as a straight line.
func NewStraightPipeline ¶
func NewStraightPipeline(name string, filters ...Filter) *StraightPipeline
*
- @author wjj
- @date 2020/9/8 1:53 上午
- @description pipeline设计模式
NewStraightPipeline create a new StraightPipelineWithWallTime
type ToIntFilter ¶
type ToIntFilter struct { }
func NewToIntFilter ¶
func NewToIntFilter() *ToIntFilter
Click to show internal directories.
Click to hide internal directories.