package
0.2.4
Repository: https://github.com/hack-pad/hackpadfs.git
Documentation: pkg.go.dev

# Packages

Package blob defines a common data interchange type for keyvalue FS's.

# Functions

NewBaseFileRecord returns a new BaseFileRecord for the given file's metadata and getters.
NewFS returns a new FS wrapping the given 'store'.
TransactionOrSerial attempts to produce a Transaction from 'store'.

# Constants

Transaction modes.
Transaction modes.

# Structs

BaseFileRecord is a FileRecord with a convenient constructor for easier Store implementations.
FS wraps a Store as a file system.
OpResult is returned from Transaction.Commit(), representing an operation's result with any data or error it produced.
TransactionOptions contain options used to construct a Transaction from a Store.

# Interfaces

FileRecord represents a file inside a Store.
OpHandler processes 'result' during the commit process of 'txn'.
Store holds arbitrary file data at the given 'path' location.
Transaction behaves like a Store but only returns results after running Commit().
TransactionStore is a Store that can create a Transaction.

# Type aliases

OpHandlerFunc is a convenient func wrapper for implementing OpHandler.
OpID is a unique ID within the transaction that generated it.
TransactionMode is the kind of transaction mode, i.e.