Documentation
¶
Index ¶
- type AccessTree
- func (tree *AccessTree) AddNode(val string, parent *Node) Node
- func (tree *AccessTree) AddUri(path string)
- func (tree *AccessTree) EndpointAccess(level string) gin.HandlerFunc
- func (tree *AccessTree) Find(uriSplit []string) int
- func (tree *AccessTree) ListUsers() []string
- func (tree *AccessTree) ReadUserFile(fileName string)
- func (tree AccessTree) RemoveUser(user string)
- type Node
- type PathArray
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) 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)
Click to show internal directories.
Click to hide internal directories.