resNodeTree

package
v0.0.0-...-cee649a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CountTree

func CountTree(t *Tree)

func CountTreeRO

func CountTreeRO(t *Tree) (nodesNum int, nodesStatusMap map[int]int)

func SynchronizeNodesInfo

func SynchronizeNodesInfo(t *Tree, nodes []resNode.Node) (err error)

syn the nodes info from DB to the Tree struct

func TreeToJson

func TreeToJson(t Tree) (string, error)

func TreeToJsonIndent

func TreeToJsonIndent(t Tree) (string, error)

Types

type Tree

type Tree struct {
	RootGroup resNodeGroup.Group
	NodesMap  map[int64]*resNode.Node

	NodesNum       int
	NodesStatusMap map[int]int
}

func CopyTree

func CopyTree(t *Tree) (nt *Tree)

func FiltrateTree

func FiltrateTree(t *Tree, filter func(node resNode.Node) bool) (nt *Tree)

func LoadTreeFromJson

func LoadTreeFromJson(str string) (t Tree, err error)

Jump to

Keyboard shortcuts

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