Documentation ¶
Index ¶
- func BBOOL(TYPE Verb, verb Verb) bool
- type ActType
- type Dir
- func (dir *Dir) Add(path string, add int) (string, Err)
- func (dir *Dir) AddDirNum(num int)
- func (dir *Dir) AddFileNum(num int)
- func (dir *Dir) Create(path string, value string, attr Verb) Err
- func (dir *Dir) Del(path string) Err
- func (dir *Dir) DelWithPat(path string) (map[string]interface{}, Err)
- func (dir *Dir) Get(path string) (string, Verb, Err)
- func (dir *Dir) GetWithPat(path string) (map[string]interface{}, Err)
- func (dir *Dir) IsDir(path string) (bool, Err)
- func (dir *Dir) MkDir(path string, value string) Err
- func (dir *Dir) Set(path string, value string) Err
- type File
- type Fs
- func (fs *Fs) Add(key string, numStr string) (string, Err)
- func (fs *Fs) Apply(path string, value string, verb uint32, addr string) (interface{}, error)
- func (fs *Fs) Create(key string, value string, attr Verb, tempDataId_IP string) Err
- func (fs *Fs) Del(key string) Err
- func (fs *Fs) DelWatch(path string, ip string)
- func (fs *Fs) DelWatchAllWithIp(ip string)
- func (fs *Fs) DelWithPat(key string) (map[string]interface{}, Err)
- func (fs *Fs) DelWithPatStr(key string) (string, Err)
- func (fs *Fs) Dir() *Dir
- func (fs *Fs) DirNum() int
- func (fs *Fs) Encode() string
- func (fs *Fs) FileNum() int
- func (fs *Fs) Get(key string, pat bool) (string, Verb, Err)
- func (fs *Fs) GetFsData() ([]byte, Err)
- func (fs *Fs) GetWithPat(key string) (map[string]interface{}, Err)
- func (fs *Fs) IsDir(key string) (bool, Err)
- func (fs *Fs) MkDir(key string, value string) Err
- func (fs *Fs) RemoveTempData(tempDataId_IP string)
- func (fs *Fs) Set(key string, value string) Err
- func (fs *Fs) SetFsData(bytes []byte) Err
- func (fs *Fs) SetWatch(path string, ip string, tag string, immediate bool)
- type FsNotify
- type OpType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dir ¶
type Dir struct { Value string `json:"value"` Abs string `json:"abs"` Attr Verb `json:"attr"` Files map[string]interface{} `json:"files"` // contains filtered or unexported fields }
watch is only for files, not for dir
func (*Dir) AddFileNum ¶
func (*Dir) DelWithPat ¶
func (*Dir) GetWithPat ¶
type File ¶
type File struct { Value string `json:"value"` Name string `json:"name"` Attr Verb `json:"attr"` // contains filtered or unexported fields }
func (*File) AddFileNum ¶
func (*File) RemoveFromDir ¶
func (file *File) RemoveFromDir()
type Fs ¶
type Fs struct { //watch 需要再搞个watchRoot Root *Dir // contains filtered or unexported fields }
The key-value database.
func (*Fs) DelWatchAllWithIp ¶
func (*Fs) DelWithPat ¶
Sets the value for a given key.
func (*Fs) DelWithPatStr ¶
func (*Fs) GetWithPat ¶
// Retrieves the value for a given key.
func (*Fs) RemoveTempData ¶
Click to show internal directories.
Click to hide internal directories.