tree

package
v0.0.0-...-a51f70f Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTree

type AccessTree struct {
	Root *Node
}

func MakeAccessTree

func MakeAccessTree(root_name string) (*AccessTree, error)

func (*AccessTree) AddNode

func (tree *AccessTree) AddNode(val string, parent *Node) Node

func (*AccessTree) AddUri

func (tree *AccessTree) AddUri(path string)

func (*AccessTree) EndpointAccess

func (tree *AccessTree) EndpointAccess(level string) gin.HandlerFunc

func (*AccessTree) Find

func (tree *AccessTree) Find(uriSplit []string) int

func (*AccessTree) ListUsers

func (tree *AccessTree) ListUsers() []string

func (*AccessTree) ReadUserFile

func (tree *AccessTree) ReadUserFile(fileName string)

func (AccessTree) RemoveUser

func (tree AccessTree) RemoveUser(user string)

type Node

type Node struct {
	Data     string
	Parent   *Node
	Children map[string]*Node
}

type PathArray

type PathArray struct {
	Paths []string
}

Jump to

Keyboard shortcuts

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