FileInput can read requests generated by FileOutput
| 202 | |
| 203 | // FileInput can read requests generated by FileOutput |
| 204 | type FileInput struct { |
| 205 | mu sync.Mutex |
| 206 | data chan []byte |
| 207 | exit chan bool |
| 208 | path string |
| 209 | readers []*fileInputReader |
| 210 | speedFactor float64 |
| 211 | loop bool |
| 212 | readDepth int |
| 213 | dryRun bool |
| 214 | maxWait time.Duration |
| 215 | |
| 216 | stats *expvar.Map |
| 217 | } |
| 218 | |
| 219 | // NewFileInput constructor for FileInput. Accepts file path as argument. |
| 220 | func NewFileInput(path string, loop bool, readDepth int, maxWait time.Duration, dryRun bool) (i *FileInput) { |
nothing calls this directly
no outgoing calls
no test coverage detected