Documentation
¶
Index ¶
- Constants
- func BuildPath(_path []string, entry string) string
- func WalkTree(node *model.Node, visitor FileTreeVistor)
- type FileTreeCtx
- func (ctx *FileTreeCtx) AddDocument(document *model.Document)
- func (ctx *FileTreeCtx) Clear()
- func (ctx *FileTreeCtx) DeleteNode(node *model.Node)
- func (ctx *FileTreeCtx) MoveNode(src, dst *model.Node)
- func (ctx *FileTreeCtx) NodeById(id string) *model.Node
- func (ctx *FileTreeCtx) NodeByPath(path string, current *model.Node) (*model.Node, error)
- func (ctx *FileTreeCtx) NodeToPath(targetNode *model.Node) (string, error)
- func (ctx *FileTreeCtx) Root() *model.Node
- type FileTreeVistor
Constants ¶
View Source
const ( StopVisiting = true ContinueVisiting = false )
Variables ¶
This section is empty.
Functions ¶
func WalkTree ¶
func WalkTree(node *model.Node, visitor FileTreeVistor)
Types ¶
type FileTreeCtx ¶
type FileTreeCtx struct {
// contains filtered or unexported fields
}
func CreateFileTreeCtx ¶
func CreateFileTreeCtx() FileTreeCtx
func (*FileTreeCtx) AddDocument ¶
func (ctx *FileTreeCtx) AddDocument(document *model.Document)
func (*FileTreeCtx) Clear ¶ added in v0.0.23
func (ctx *FileTreeCtx) Clear()
func (*FileTreeCtx) DeleteNode ¶
func (ctx *FileTreeCtx) DeleteNode(node *model.Node)
func (*FileTreeCtx) MoveNode ¶
func (ctx *FileTreeCtx) MoveNode(src, dst *model.Node)
func (*FileTreeCtx) NodeById ¶ added in v0.0.4
func (ctx *FileTreeCtx) NodeById(id string) *model.Node
func (*FileTreeCtx) NodeByPath ¶
func (*FileTreeCtx) NodeToPath ¶
func (ctx *FileTreeCtx) NodeToPath(targetNode *model.Node) (string, error)
func (*FileTreeCtx) Root ¶
func (ctx *FileTreeCtx) Root() *model.Node
Click to show internal directories.
Click to hide internal directories.