Versions in this module Expand all Collapse all v0 v0.1.1 Jul 14, 2023 Changes in this version + var File_filemeta_proto protoreflect.FileDescriptor + type Attributes struct + Hash []byte + Size int64 + TimeNs int64 + func (*Attributes) Descriptor() ([]byte, []int) + func (*Attributes) ProtoMessage() + func (attr *Attributes) Time() time.Time + func (x *Attributes) GetHash() []byte + func (x *Attributes) GetSize() int64 + func (x *Attributes) GetTimeNs() int64 + func (x *Attributes) ProtoReflect() protoreflect.Message + func (x *Attributes) Reset() + func (x *Attributes) String() string v0.1.0 Jul 13, 2023 Changes in this version + const HashSize + func ReadCustom(fileName string, attrName string, data proto.Message) error + func SyncOperations(op Op) (func(string) Data, func()) + func WriteCustom(fileName string, attrName string, data proto.Message) error + type Async struct + DataOut chan Data + FileIn chan string + func AsyncMono(op Op) Async + func AsyncOperations(op Op, probeThreads int, hashThreads int) Async + type Attr struct + Hash []byte + Size int64 + TimeNs int64 + type Data struct + Changed bool + Error error + Hash []byte + Hashed bool + Operation Op + VerifyFailed bool + func Get(fileName string) Data + func Inspect(fileName string) Data + func Operation(op Op, fileName string) (data Data) + func Refresh(fileName string) Data + func Verify(fileName string) Data + func (d *Data) GetAttr() Attr + func (d *Data) GetModTime() time.Time + func (d *Data) Rename(newPath string) (err error) + func (d *Data) SetModTime(tim time.Time) (err error) + type FetchFunc func(fileName string) Data + type FileWriter struct + Close func(fileTimeNs int64) (Attr, error) + Open func(fileName string, fileFlags int, filePerm os.FileMode) error + Write func([]byte) error + func NewFileWriter() FileWriter + type HashKey [HashSize]byte + func ToHashKey(x []byte) (k HashKey) + type Op int8 + const OpGet + const OpInspect + const OpRefresh + const OpVerify + func (op Op) String() string