builder

package
v0.0.0-...-4f8ec59 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindCSV         = "csv"
	KindDOT         = "dot"
	KindJSON        = "json"
	KindTREE        = "tree"
	KindYAML        = "yaml"
	KindSTAT        = "stat"
	KindStructurizr = "sdsl"
	KindPlantUML    = "puml"
)

Variables

View Source
var ErrDuplicate = errors.New("duplicate found")

Functions

func Create

func Create(kind string) (b graph.NamedBuilderWriter, ok bool)

func SupportCluster

func SupportCluster(n string) (yes bool)

Types

type CSV

type CSV struct {
	// contains filtered or unexported fields
}

func NewCSV

func NewCSV() *CSV

func (*CSV) AddEdge

func (c *CSV) AddEdge(e *node.Edge)

func (*CSV) AddNode

func (c *CSV) AddNode(n *node.Node) error

func (*CSV) Name

func (c *CSV) Name() string

func (*CSV) Write

func (c *CSV) Write(w io.Writer) error

type DOT

type DOT struct {
	// contains filtered or unexported fields
}

func NewDOT

func NewDOT() *DOT

func (*DOT) AddEdge

func (d *DOT) AddEdge(e *node.Edge)

func (*DOT) AddNode

func (d *DOT) AddNode(n *node.Node) error

func (*DOT) Name

func (d *DOT) Name() string

func (*DOT) Write

func (d *DOT) Write(w io.Writer) error

type JSON

type JSON struct {
	// contains filtered or unexported fields
}

func NewJSON

func NewJSON() *JSON

func (*JSON) AddEdge

func (j *JSON) AddEdge(e *node.Edge)

func (*JSON) AddNode

func (j *JSON) AddNode(n *node.Node) error

func (*JSON) Name

func (j *JSON) Name() string

func (*JSON) Sorted

func (j *JSON) Sorted(fn func(*node.JSON, bool))

func (*JSON) Write

func (j *JSON) Write(w io.Writer) (err error)

type PlantUML

type PlantUML struct {
	// contains filtered or unexported fields
}

func NewPlantUML

func NewPlantUML() *PlantUML

func (*PlantUML) AddEdge

func (p *PlantUML) AddEdge(e *node.Edge)

func (*PlantUML) AddNode

func (p *PlantUML) AddNode(n *node.Node) error

func (*PlantUML) Name

func (p *PlantUML) Name() string

func (*PlantUML) Write

func (p *PlantUML) Write(w io.Writer) error

type Stat

type Stat struct {
	// contains filtered or unexported fields
}

func NewStat

func NewStat() *Stat

func (*Stat) AddEdge

func (s *Stat) AddEdge(e *node.Edge)

func (*Stat) AddNode

func (s *Stat) AddNode(n *node.Node) error

func (*Stat) Name

func (s *Stat) Name() string

func (*Stat) Write

func (s *Stat) Write(w io.Writer) error

type Structurizr

type Structurizr struct {
	// contains filtered or unexported fields
}

func NewStructurizr

func NewStructurizr() *Structurizr

func (*Structurizr) AddEdge

func (s *Structurizr) AddEdge(e *node.Edge)

func (*Structurizr) AddNode

func (s *Structurizr) AddNode(n *node.Node) error

func (*Structurizr) Name

func (s *Structurizr) Name() string

func (*Structurizr) Write

func (s *Structurizr) Write(w io.Writer) error

type Tree

type Tree struct {
	// contains filtered or unexported fields
}

func NewTree

func NewTree() *Tree

func (*Tree) AddEdge

func (t *Tree) AddEdge(e *node.Edge)

func (*Tree) AddNode

func (t *Tree) AddNode(n *node.Node) error

func (*Tree) Name

func (t *Tree) Name() string

func (*Tree) Write

func (t *Tree) Write(w io.Writer) error

type YAML

type YAML struct {
	// contains filtered or unexported fields
}

func NewYAML

func NewYAML() *YAML

func (*YAML) AddEdge

func (y *YAML) AddEdge(e *node.Edge)

func (*YAML) AddNode

func (y *YAML) AddNode(n *node.Node) error

func (*YAML) Name

func (y *YAML) Name() string

func (*YAML) Write

func (y *YAML) Write(w io.Writer) error

Jump to

Keyboard shortcuts

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