Documentation ¶
Index ¶
- Variables
- func NewProcessAdaptive(id string, minThreads, maxThreads int, config *ProcessAdaptiveConfig, ...) (process, error)
- func NewProcessConcurrent(id string, threads int, worker ProcessWorker) (process, error)
- func NewProcessSingle(id string, worker ProcessWorker) process
- func NewSinkConcurrent(id string, threads int, worker SinkWorker) (sink, error)
- func NewSinkSingle(id string, worker SinkWorker) sink
- type Pipeline
- type ProcessAdaptiveConfig
- type ProcessWorker
- type ProcessWorkerFunc
- type SimpleProcessWorker
- type SimpleSinkWorker
- type SinkWorker
- type SinkWorkerFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultProcessAdaptiveConfig = &ProcessAdaptiveConfig{ SamplingInterval: 5 * time.Second, SamplingWindow: 70, ScaleInterval: 30 * time.Second, }
Functions ¶
func NewProcessAdaptive ¶
func NewProcessAdaptive(id string, minThreads, maxThreads int, config *ProcessAdaptiveConfig, worker ProcessWorker) (process, error)
func NewProcessConcurrent ¶
func NewProcessConcurrent(id string, threads int, worker ProcessWorker) (process, error)
func NewProcessSingle ¶
func NewProcessSingle(id string, worker ProcessWorker) process
func NewSinkConcurrent ¶
func NewSinkConcurrent(id string, threads int, worker SinkWorker) (sink, error)
func NewSinkSingle ¶
func NewSinkSingle(id string, worker SinkWorker) sink
Types ¶
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
func NewPipeline ¶
type ProcessAdaptiveConfig ¶
type ProcessWorker ¶
type ProcessWorker interface {
Process(context.Context, string, interface{}, func(interface{})) error
}
func NewSimpleProcessWorker ¶
func NewSimpleProcessWorker(f ProcessWorkerFunc) ProcessWorker
type ProcessWorkerFunc ¶
type SimpleProcessWorker ¶
type SimpleProcessWorker struct {
// contains filtered or unexported fields
}
type SimpleSinkWorker ¶
type SimpleSinkWorker struct {
// contains filtered or unexported fields
}
type SinkWorker ¶
func NewSimpleSinkWorker ¶
func NewSimpleSinkWorker(f SinkWorkerFunc) SinkWorker
Source Files ¶
Click to show internal directories.
Click to hide internal directories.