Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LastAccessTime ¶
LastAccessTime tracks a file's last access time.
func NewLastAccessTime ¶
func NewLastAccessTime(t time.Time) *LastAccessTime
NewLastAccessTime creates a LastAccessTime from t.
func (*LastAccessTime) Deserialize ¶
func (t *LastAccessTime) Deserialize(b []byte) error
Deserialize loads b into t.
func (*LastAccessTime) GetSuffix ¶
func (t *LastAccessTime) GetSuffix() string
GetSuffix returns the metadata suffix.
func (*LastAccessTime) Serialize ¶
func (t *LastAccessTime) Serialize() ([]byte, error)
Serialize converts t to bytes.
type Metadata ¶
type Metadata interface { GetSuffix() string Movable() bool Serialize() ([]byte, error) Deserialize([]byte) error }
Metadata defines types of matadata file. All implementations of Metadata must register themselves.
func CreateFromSuffix ¶
CreateFromSuffix creates a Metadata obj based on suffix. This is not a very efficient method; It's mostly used during reload.
Click to show internal directories.
Click to hide internal directories.