file

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

func NewFileSource

func NewFileSource(filename string, opts ...Option) (fs *File, err error)

func (*File) Close

func (f *File) Close()

func (*File) Next

func (f *File) Next(ctx context.Context, preversion int64) (content []byte, curversion int64, ok bool)

type Option

type Option func(*File)

func WithIgnoreEvents

func WithIgnoreEvents(ops []fsnotify.Op) Option

func WithLogger

func WithLogger(log logger.LeveledLogger) Option

Jump to

Keyboard shortcuts

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