Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParallelOutputs ¶
ParallelOutputs tries to write each output parallelly and returns when all outputs finished.
func SequentialInputs ¶
SequentialInputs tries each input sequentially and returns the first successful one.
func SequentialOutputs ¶
SequentialOutputs tries to write each output sequentially and returns when one fails.
Types ¶
type Input ¶
type Input interface {
Read() (obj interface{}, err error)
}
Input represents a system that can fetch an object somewhere (e.g. from the network).
type Output ¶
type Output interface {
Write(obj interface{}) error
}
Output represents a system that saves the object somewhere (e.g. to the filesystem).
Click to show internal directories.
Click to hide internal directories.