Documentation ¶
Index ¶
- type PathManager
- func (p *PathManager) AddPaths(paths []string)
- func (p *PathManager) HasExactPath(path string) bool
- func (p *PathManager) HasPath(path string) bool
- func (p *PathManager) Len() int
- func (p *PathManager) Paths() []string
- func (p *PathManager) RemovePathPrefix(prefix string)
- func (p *PathManager) RemovePaths(paths []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PathManager ¶
type PathManager struct {
// contains filtered or unexported fields
}
PathManager is a prefix searchable index of paths
func (*PathManager) AddPaths ¶
func (p *PathManager) AddPaths(paths []string)
AddPaths adds path to the paths list
func (*PathManager) HasExactPath ¶
func (p *PathManager) HasExactPath(path string) bool
HasExactPath returns if the longest match is an exact match for the full path
func (*PathManager) HasPath ¶
func (p *PathManager) HasPath(path string) bool
HasPath returns if the prefix for the path exists regardless if it is a path (ending with /) or a prefix for a leaf node
func (*PathManager) RemovePathPrefix ¶
func (p *PathManager) RemovePathPrefix(prefix string)
RemovePathPrefix removes all paths with the given prefix
func (*PathManager) RemovePaths ¶
func (p *PathManager) RemovePaths(paths []string)
RemovePaths removes paths from the paths list
Click to show internal directories.
Click to hide internal directories.