Add file transport reader

This simply returns os.File reader
This commit is contained in:
Łukasz Mierzwa
2017-04-14 22:55:37 -07:00
parent 8d972ed431
commit 436017b032

16
transport/file.go Normal file
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)
}