index.go

package volume

import "io"
//文件基本读写 存在与否  关闭
type Index interface {
    Has(fid uint64) bool
    Get(fid uint64) (*FileInfo, error)
    Set(fi *FileInfo) error
    Delete(fid uint64) error
    io.Closer
}
原文地址:https://www.cnblogs.com/zhangboyu/p/7461613.html