Documentation
¶
Index ¶
- func DirFS(root string) *osDirFS
- type Cache
- func (c *Cache) Contains(id string) (exists bool)
- func (c *Cache) Get(id string) (item Item, exists bool)
- func (c *Cache) Init() (err error)
- func (c *Cache) Open(id string) (file io.ReadSeekCloser, item Item, err error)
- func (c *Cache) OpenOrCreate(id string, create func(w io.Writer) error) (res io.ReadSeekCloser, item Item, err error)
- func (c *Cache) Remove(id string) error
- type CacheFS
- type Item
- type MutexMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct { Compressed bool // contains filtered or unexported fields }
func (*Cache) OpenOrCreate ¶
Click to show internal directories.
Click to hide internal directories.