file

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 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 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