Documentation
¶
Index ¶
- Constants
- func CatNamePath(name, path string) string
- func ExtraPath(fpath string) string
- func SplitNamePath(namepath string) (string, string)
- type FileBuffer
- func (b *FileBuffer) AddData(key, fpath string)
- func (b *FileBuffer) BufferStatus() cache.Info
- func (b *FileBuffer) GetData(key string) cache.Item
- func (b *FileBuffer) JoinPath(baseDir string, subpath ...string) (string, error)
- func (b *FileBuffer) NewBufDir(subdirs ...string) (string, error)
- func (b *FileBuffer) NewBufPath(paths ...string) (string, error)
- func (b *FileBuffer) RemoveData(fpath string) error
Constants ¶
View Source
const ( UNNAMED_FILENAME = "Unnamed" SERIALIZED_LIMIT = 5 UPDATE_TIME = 5 * time.Minute METADATA = "buffer_metadata.json" )
Variables ¶
This section is empty.
Functions ¶
func CatNamePath ¶
func SplitNamePath ¶
Types ¶
type FileBuffer ¶
type FileBuffer struct {
// contains filtered or unexported fields
}
func NewFileBuffer ¶
func NewFileBuffer(limitSize uint64, dir string) (*FileBuffer, error)
func (*FileBuffer) AddData ¶
func (b *FileBuffer) AddData(key, fpath string)
func (*FileBuffer) BufferStatus ¶
func (b *FileBuffer) BufferStatus() cache.Info
func (*FileBuffer) JoinPath ¶
func (b *FileBuffer) JoinPath(baseDir string, subpath ...string) (string, error)
func (*FileBuffer) NewBufPath ¶
func (b *FileBuffer) NewBufPath(paths ...string) (string, error)
func (*FileBuffer) RemoveData ¶
func (b *FileBuffer) RemoveData(fpath string) error
Click to show internal directories.
Click to hide internal directories.