package
0.4.0-beta.2
Repository: https://github.com/benbjohnson/litestream.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
CreateFile creates the file and matches the mode & uid/gid of fi.
Fileinfo returns syscall fields from a FileInfo object.
MD5Hash returns a hex-encoded MD5 hash of b.
MkdirAll is a copy of os.MkdirAll() except that it attempts to set the mode/uid/gid to match fi for each created directory.
NewFileWatcher returns an instance of InotifyFileWatcher on Linux systems.
NewInotifyFileWatcher returns a new instance of InotifyFileWatcher.
NewMultiReadCloser returns a new instance of MultiReadCloser.
NewReadCloser returns a new instance of ReadCloser.
NewReadCounter returns a new instance of ReadCounter that wraps r.
OnceCloser returns a closer that will only ignore duplicate closes.
ParseSnapshotPath parses the index from a snapshot filename.
ParseWALSegmentPath parses the index/offset from a segment filename.
TruncateDuration truncates d to the nearest major unit (s, ms, µs, ns).
WriteFile writes data to a named file and sets the mode & uid/gid.
# Constants
File event mask constants.
File event mask constants.
File event mask constants.
Platform-independent maximum integer sizes.
Platform-independent maximum integer sizes.
# Variables
ErrFileEventQueueOverflow is returned when the file event queue has overflowed.
Shared replica metrics.
Shared replica metrics.
# Structs
FileEvent represents an event on a watched file.
InotifyFileWatcher watches files and is notified of events on them.
LockingBuffer wraps a bytes.Buffer with a mutex.
MultiReadCloser is a logical concatenation of io.ReadCloser.
ReadCloser wraps a reader to also attach a separate closer.
ReadCounter wraps an io.Reader and counts the total number of bytes read.
# Interfaces
FileWatcher represents a watcher of file events.