Documentation ¶
Overview ¶
Package fic represents an os.FileInfo based cache of file data
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FiCache ¶
type FiCache struct {
// contains filtered or unexported fields
}
FiCache provides cached file data for any os.FileInfo
func New ¶
func New() *FiCache
New returns a fresh FiCache, ready to be populated via Register, or via Done (listening to a channel where os.FileInfo'es are supplied), and subsequently queried via Lookup or LookupData.
func (*FiCache) Done ¶
Done launches a inp listener and returns a done channel
Note: while listening, the FiCache is Locked, and any error upon registration is silently ignored
func (*FiCache) LookupData ¶
LookupData returns the data assigned to the FsData of key (or an empty string)
Click to show internal directories.
Click to hide internal directories.