fs

package
v0.0.0-...-df0bd0c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithFS

func WithFS(files fs.FS) (source.Driver, error)

Types

type FSSource

type FSSource struct {
	// contains filtered or unexported fields
}

func (*FSSource) Close

func (e *FSSource) Close() error

func (*FSSource) First

func (e *FSSource) First() (version uint, err error)

func (*FSSource) Next

func (e *FSSource) Next(version uint) (nextVersion uint, err error)

func (*FSSource) Open

func (e *FSSource) Open(_ string) (source.Driver, error)

func (*FSSource) Prev

func (e *FSSource) Prev(version uint) (prevVersion uint, err error)

func (*FSSource) ReadDown

func (e *FSSource) ReadDown(version uint) (r io.ReadCloser, identifier string, err error)

func (*FSSource) ReadUp

func (e *FSSource) ReadUp(version uint) (r io.ReadCloser, identifier string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL