Versions in this module Expand all Collapse all v0 v0.13.0 Feb 21, 2021 v0.10.0 Feb 11, 2017 Changes in this version + type Index struct + func New(logger logger.Logger) *Index + func (index *Index) Add(item *model.Item) + func (index *Index) GetAllChildren(route route.Route, expression func(item *model.Item) bool) []*model.Item + func (index *Index) GetAllItems() []*model.Item + func (index *Index) GetDirectChildren(route route.Route) []*model.Item + func (index *Index) GetLeafes(route route.Route) []*model.Item + func (index *Index) GetParent(childRoute route.Route) *model.Item + func (index *Index) IsFileMatch(r route.Route) (*model.File, bool) + func (index *Index) IsMatch(r route.Route) (item *model.Item, isMatch bool) + func (index *Index) Remove(itemRoute route.Route) + func (index *Index) Root() *model.Item + func (index *Index) Size() int + func (index *Index) String() string + type ItemTree struct + func (itemTree *ItemTree) Delete(itemRoute route.Route) (bool, error) + func (itemTree *ItemTree) GetChildItems(route route.Route) []*model.Item + func (itemTree *ItemTree) GetItem(route route.Route) *model.Item + func (itemTree *ItemTree) Insert(item *model.Item) + func (itemTree *ItemTree) Root() *model.Item + func (itemTree *ItemTree) Walk(expression func(item *model.Item))