Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FID ¶
type FID [10]byte
A unique identifier used to track individual files generated by the storage implementation.
FID's are currently comprised of two parts (all big endian): 32 bites of a timestamp 16 bit globally auto incrementing number. 32 bit machine id.
func ParseID ¶
Parses a full ID string into a FID, start and length values. This will automatically account for short and long ID names.
func (*FID) Generate ¶
Generates a new file id and populates the values inside of the passed FID. This will overwrite any existing data.
type Formatter ¶
type Formatter struct {
// contains filtered or unexported fields
}
func NewFormatter ¶
Creates a new formatter from the given format string. If the string is not a valid format syntax then this will return an error.
Click to show internal directories.
Click to hide internal directories.