Documentation ¶
Overview ¶
Package fs is just a simple encapsulation of index.NewFileSystemDirectory for logging time cost.
Index ¶
- type FsDirectory
- func (d *FsDirectory) List(kind string) ([]uint64, error)
- func (d *FsDirectory) Load(kind string, id uint64) (*segment.Data, io.Closer, error)
- func (d *FsDirectory) Lock() error
- func (d *FsDirectory) Persist(kind string, id uint64, w index.WriterTo, closeCh chan struct{}) error
- func (d *FsDirectory) Remove(kind string, id uint64) error
- func (d *FsDirectory) Setup(readOnly bool) error
- func (d *FsDirectory) Stats() (numFilesOnDisk, numBytesUsedDisk uint64)
- func (d *FsDirectory) Sync() error
- func (d *FsDirectory) Unlock() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FsDirectory ¶
type FsDirectory struct {
// contains filtered or unexported fields
}
func NewFsDirectory ¶
func NewFsDirectory(path string) *FsDirectory
func (*FsDirectory) Lock ¶
func (d *FsDirectory) Lock() error
func (*FsDirectory) Setup ¶
func (d *FsDirectory) Setup(readOnly bool) error
func (*FsDirectory) Stats ¶
func (d *FsDirectory) Stats() (numFilesOnDisk, numBytesUsedDisk uint64)
func (*FsDirectory) Sync ¶
func (d *FsDirectory) Sync() error
func (*FsDirectory) Unlock ¶
func (d *FsDirectory) Unlock() error
Click to show internal directories.
Click to hide internal directories.