generator

package
v1.0.4-0...-d8282c0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: MulanPSL-2.0 Imports: 20 Imported by: 0

Documentation

Overview

* Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. * PilotGo-plugin-topology licensed under the Mulan Permissive Software License, Version 2. * See LICENSE file for more details. * Author: Wangjunqi123 <wangjunqi@kylinos.cn> * Date: Mon Nov 4 14:30:13 2024 +0800

* Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. * PilotGo-plugin-topology licensed under the Mulan Permissive Software License, Version 2. * See LICENSE file for more details. * Author: Wangjunqi123 <wangjunqi@kylinos.cn> * Date: Mon Nov 4 14:30:13 2024 +0800

* Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. * PilotGo-plugin-topology licensed under the Mulan Permissive Software License, Version 2. * See LICENSE file for more details. * Author: Wangjunqi123 <wangjunqi@kylinos.cn> * Date: Mon Nov 4 14:30:13 2024 +0800

* Copyright (c) KylinSoft Co., Ltd. 2024.All rights reserved. * PilotGo-plugin-topology licensed under the Mulan Permissive Software License, Version 2. * See LICENSE file for more details. * Author: Wangjunqi123 <wangjunqi@kylinos.cn> * Date: Mon Nov 4 14:30:13 2024 +0800

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomTopo

type CustomTopo struct {
	Tagrules  []mysqlmanager.Tag_rule
	Noderules [][]mysqlmanager.Filter_rule
	// contains filtered or unexported fields
}

func (*CustomTopo) CreateEdgeEntities

func (c *CustomTopo) CreateEdgeEntities(agent *agentmanager.Agent, edges *graph.Edges, nodes *graph.Nodes) error

func (*CustomTopo) CreateNodeEntities

func (c *CustomTopo) CreateNodeEntities(agent *agentmanager.Agent, nodes *graph.Nodes) error

func (*CustomTopo) Return_Agent_node_count

func (c *CustomTopo) Return_Agent_node_count() *int32

type PublicTopo

type PublicTopo struct {
	Agent_node_count *int32
}

func (*PublicTopo) CreateEdgeEntities

func (p *PublicTopo) CreateEdgeEntities(agent *agentmanager.Agent, edges *graph.Edges, nodes *graph.Nodes) error

func (*PublicTopo) CreateNodeEntities

func (p *PublicTopo) CreateNodeEntities(agent *agentmanager.Agent, nodes *graph.Nodes) error

func (*PublicTopo) Return_Agent_node_count

func (p *PublicTopo) Return_Agent_node_count() *int32

type TopoGenerator

type TopoGenerator struct {
	Factory TopoInterface
}

func CreateTopoGenerator

func CreateTopoGenerator(trules []mysqlmanager.Tag_rule, nrules [][]mysqlmanager.Filter_rule) *TopoGenerator

func (*TopoGenerator) ProcessingData

func (t *TopoGenerator) ProcessingData(agentnum int) (*graph.Nodes, *graph.Edges, []error, []error)

type TopoInterface

type TopoInterface interface {
	CreateNodeEntities(*agentmanager.Agent, *graph.Nodes) error
	CreateEdgeEntities(*agentmanager.Agent, *graph.Edges, *graph.Nodes) error
	Return_Agent_node_count() *int32
}

Directories

Path Synopsis
* Copyright (c) KylinSoft Co., Ltd.
* Copyright (c) KylinSoft Co., Ltd.

Jump to

Keyboard shortcuts

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