package
0.0.0-20240830124323-c3d2d57c8a5a
Repository: https://github.com/fantom-foundation/carmendb.git
Documentation: pkg.go.dev

# Packages

Package checkpoint is a generated GoMock package.

# Functions

NewChunkReader returns an io.Reader that reads from the stored data, while returning them by parts of the configured size.
NewMockFileInfo creates a new mock instance.
NewMockOsFile creates a new mock instance.
NewMockSeekableFile creates a new mock instance.
OpenBufferedFile opens the file at the given path for read/write operations.
ReadJsonFile reads a JSON file and unmarshals it into a struct of type T.
WriteJsonFile marshals a struct of type T into a JSON file.

# Structs

BufferedFile is a wrapper around an *os.File coordinating seek, read, and write operations.
MockFileInfo is a mock of FileInfo interface.
MockFileInfoMockRecorder is the mock recorder for MockFileInfo.
MockOsFile is a mock of OsFile interface.
MockOsFileMockRecorder is the mock recorder for MockOsFile.
MockSeekableFile is a mock of SeekableFile interface.
MockSeekableFileMockRecorder is the mock recorder for MockSeekableFile.

# Interfaces

FileInfo interfaces is an equal representation of the build-in fs.FileInfo interface, provided for easier mocking.
OsFile provides a layer of abstraction between file-level primitives like the buffered file, stock, or stacks and build-in os.File operations to facilitate the effective testing of those constructs.
SeekableFile is an interface for files that can be read or written at or from the given position.