Documentation
¶
Index ¶
- Constants
- type ProcessorExecutor
- func (p ProcessorExecutor) AddData(procID, runID string, data processors.Data) error
- func (p ProcessorExecutor) Configure(procID, runID string, config processors.Configuration) error
- func (p ProcessorExecutor) GetAllProcessors() (*processors.Processors, error)
- func (p ProcessorExecutor) GetAllRuns(procID string) (*processors.Runs, error)
- func (p ProcessorExecutor) GetConfig(procID, runID string) (*processors.Configuration, error)
- func (p ProcessorExecutor) GetData(procID, runID string) (*processors.DataSpec, error)
- func (p ProcessorExecutor) GetProcessor(procID string) (*processors.Processor, error)
- func (p ProcessorExecutor) GetRun(procID, runID string) (*processors.Run, error)
- type Worker
Constants ¶
View Source
const Version = "0.1.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorExecutor ¶
type ProcessorExecutor struct {
// contains filtered or unexported fields
}
ProcessorExecutor implements the ProcessorAPIServer for builtin Golang Processors. It uses channels, maps, and concurrency to parallelize by chunks It is designed so all operations can use a value receiver. The version an base processors don't need to be modified, but the specific runs do, which is why it is a map to pointers can maps be modified with value receivers? yes they can, because maps, slices, and channels are inherently mutable think about concurrency issues, e.g. will multiple requests result in consistent state -- map need a stronger concurrency primitive than a simple Map, e.g. locks
func NewProcessorExecutor ¶
func NewProcessorExecutor() ProcessorExecutor
func (ProcessorExecutor) AddData ¶
func (p ProcessorExecutor) AddData(procID, runID string, data processors.Data) error
func (ProcessorExecutor) Configure ¶
func (p ProcessorExecutor) Configure(procID, runID string, config processors.Configuration) error
func (ProcessorExecutor) GetAllProcessors ¶
func (p ProcessorExecutor) GetAllProcessors() (*processors.Processors, error)
func (ProcessorExecutor) GetAllRuns ¶
func (p ProcessorExecutor) GetAllRuns(procID string) (*processors.Runs, error)
func (ProcessorExecutor) GetConfig ¶
func (p ProcessorExecutor) GetConfig(procID, runID string) (*processors.Configuration, error)
GetConfig must be called on an existing run
func (ProcessorExecutor) GetData ¶
func (p ProcessorExecutor) GetData(procID, runID string) (*processors.DataSpec, error)
func (ProcessorExecutor) GetProcessor ¶
func (p ProcessorExecutor) GetProcessor(procID string) (*processors.Processor, error)
func (ProcessorExecutor) GetRun ¶
func (p ProcessorExecutor) GetRun(procID, runID string) (*processors.Run, error)
Click to show internal directories.
Click to hide internal directories.