func New(fs vfs.FileSystem, gateCh chan bool) vfs.FileSystem { … }
type gate …
func (g gate) enter() { … }
func (g gate) leave() { … }
type gatefs …
func (fs gatefs) String() string { … }
func (fs gatefs) RootType(path string) vfs.RootType { … }
func (fs gatefs) Open(p string) (vfs.ReadSeekCloser, error) { … }
func (fs gatefs) Lstat(p string) (os.FileInfo, error) { … }
func (fs gatefs) Stat(p string) (os.FileInfo, error) { … }
func (fs gatefs) ReadDir(p string) ([]os.FileInfo, error) { … }
type gatef …
func (f gatef) Read(p []byte) (n int, err error) { … }
func (f gatef) Seek(offset int64, whence int) (ret int64, err error) { … }
func (f gatef) Close() error { … }