Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecutePipe ¶
func ExecutePipe(execute ExecutionFunc, encode EncoderFunc, input io.Reader, output io.Writer) error
func GetListEncoderTypes ¶
func GetListEncoderTypes() []string
func IsValidEncoderType ¶
Types ¶
type EncoderFunc ¶
var DefaultEncoder EncoderFunc = png.Encode
type ExecutionFunc ¶
func ChainExecutions ¶
func ChainExecutions(executions ...ExecutionFunc) ExecutionFunc
ChainExecutions create ExecutionFunc that execute all executions one by one. If one of executions returns error result ExecutionFunc stops execution and return error
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(settings dto.ExecutorSettings, executionFunc ExecutionFunc) *Executor
NewExecutor creates Executor with settings and execution func. All args should be valid!
Click to show internal directories.
Click to hide internal directories.