MCPcopy
hub / github.com/probelabs/goreplay / FileInput

Struct FileInput

input_file.go:204–217  ·  view source on GitHub ↗

FileInput can read requests generated by FileOutput

Source from the content-addressed store, hash-verified

202
203// FileInput can read requests generated by FileOutput
204type 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.
220func NewFileInput(path string, loop bool, readDepth int, maxWait time.Duration, dryRun bool) (i *FileInput) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected