cfs

package
v0.0.0-...-7b990d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	H = iota
	C
)
View Source
const (
	ColdMultiples = 1024
)
View Source
const (
	FlushSize = 1024 * 1024
)

Variables

This section is empty.

Functions

func New

func New(limit int, dir string, usr interface{}, cbk CallBack) (*fs, error)

Types

type CallBack

type CallBack func(interface{}, string, string, int)

type FS

type FS interface {
	Close() error
	Create(string) error
	IsExist(string) (int64, bool)
	Remove(string) (error, bool)
	Link(string, string) (error, bool)
	Rename(string, string) (error, bool)

	RemoveAll(string) error
	List(string) ([]string, error)

	Write(string, []byte) (error, bool)
	Read(string, int64, int) ([]byte, error, bool)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL