Add file transport reader

This simply returns os.File reader
This commit is contained in:
Łukasz Mierzwa
2017-04-16 08:31:07 -07:00
parent 8d972ed431
commit 436017b032
+16
View File
@@ -0,0 +1,16 @@
package transport
import (
"os"
log "github.com/Sirupsen/logrus"
)
type fileReader struct {
filename string
}
func newFileReader(filname string) (*os.File, error) {
log.Infof("Reading file '%s'", filname)
return os.Open(filname)
}