Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor interface { AddTask(ProcessorFunc) ProcessAll() error }
type ProcessorFunc ¶
type ProcessorFunc func() error
type SimpleProcessor ¶
type SimpleProcessor struct {
// contains filtered or unexported fields
}
func NewSimpleProcessor ¶
func NewSimpleProcessor(ctx context.Context) SimpleProcessor
func (*SimpleProcessor) AddTask ¶
func (p *SimpleProcessor) AddTask(processorFunc ProcessorFunc)
func (*SimpleProcessor) ProcessAll ¶
func (p *SimpleProcessor) ProcessAll() error
Click to show internal directories.
Click to hide internal directories.