Documentation
¶
Overview ¶
Nail-House Allocation Method.
Index ¶
- Constants
- Variables
- func FileTableExpire(tx *bolt.Tx, id FileID, size int64, upToTime int) (e error)
- func FileTableInsert(tx *bolt.Tx, id FileID, size int64, timeNail int, checker AppendChecker) (finalOffset int64, ve error, e error)
- func TimeToInt(t time.Time) int
- type AppendChecker
- type DirTable
- type FeId
- type FileEntry
- type FileID
- type FileMetadata
- type Position
Constants ¶
View Source
const ( // Used for all entries. FeId_Master byte = iota FeId_Free FeId_Used FeId_SizeCount FeId_EndSizeCount )
The Prefixes for FeId
Variables ¶
View Source
var EAppendDenied = errors.New("Append Denied")
Functions ¶
func FileTableExpire ¶
func FileTableInsert ¶
Types ¶
type AppendChecker ¶
var DENIED AppendChecker = func(totalFilesize int64) error { return EAppendDenied }
type FileMetadata ¶
type FileMetadata struct { NailHouse int // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.