resNodeGroup

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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusPartiallySelected = 4
)

Variables

This section is empty.

Functions

func CountGroup

func CountGroup(g *Group)

func CountGroupRO

func CountGroupRO(g Group) (nodesNum int, nodesStatusMap map[int]int)

func GroupToJson

func GroupToJson(g Group) (string, error)

func GroupToJsonIndent

func GroupToJsonIndent(g Group) (string, error)

Types

type Group

type Group struct {
	ID             int             `json:"group_id"`
	Name           string          `json:"group_name"`
	Status         int             `json:"group_status"`
	Description    string          `json:"description"`
	SubGroups      []*Group        `json:"sub_groups"`
	Nodes          []*resNode.Node `json:"nodes"`
	NodesNum       int             `json:"nodes_num"`
	NodesStatusMap map[int]int     `json:"nodes_status_map"`
}

func CopyGroup

func CopyGroup(g *Group) (ng *Group)

make new Group, but keep the *Node pointer

func LoadGroupFromJson

func LoadGroupFromJson(str string) (g Group, err error)

Jump to

Keyboard shortcuts

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