builder

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 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 added in v1.6.0

func SupportCluster(n string) (yes bool)

Types

type CSV added in v1.8.13

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

func NewCSV added in v1.8.13

func NewCSV() *CSV

func (*CSV) AddEdge added in v1.8.13

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

func (*CSV) AddNode added in v1.8.13

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

func (*CSV) Name added in v1.8.13

func (c *CSV) Name() string

func (*CSV) Write added in v1.8.13

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 added in v1.4.6

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 added in v1.4.6

func (j *JSON) Name() string

func (*JSON) Sorted added in v1.5.0

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

func (*JSON) Write

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

type PlantUML added in v1.10.0

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

func NewPlantUML added in v1.10.0

func NewPlantUML() *PlantUML

func (*PlantUML) AddEdge added in v1.10.0

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

func (*PlantUML) AddNode added in v1.10.0

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

func (*PlantUML) Name added in v1.10.0

func (p *PlantUML) Name() string

func (*PlantUML) Write added in v1.10.0

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

type Stat added in v1.7.0

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

func NewStat added in v1.7.0

func NewStat() *Stat

func (*Stat) AddEdge added in v1.7.0

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

func (*Stat) AddNode added in v1.7.0

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

func (*Stat) Name added in v1.7.0

func (s *Stat) Name() string

func (*Stat) Write added in v1.7.0

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

type Structurizr added in v1.3.0

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

func NewStructurizr added in v1.3.0

func NewStructurizr() *Structurizr

func (*Structurizr) AddEdge added in v1.3.0

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

func (*Structurizr) AddNode added in v1.3.0

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

func (*Structurizr) Name added in v1.4.6

func (s *Structurizr) Name() string

func (*Structurizr) Write added in v1.3.0

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

type Tree added in v1.5.0

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

func NewTree added in v1.5.0

func NewTree() *Tree

func (*Tree) AddEdge added in v1.5.0

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

func (*Tree) AddNode added in v1.5.0

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

func (*Tree) Name added in v1.5.0

func (t *Tree) Name() string

func (*Tree) Write added in v1.5.0

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

type YAML added in v1.7.0

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

func NewYAML added in v1.7.0

func NewYAML() *YAML

func (*YAML) AddEdge added in v1.7.0

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

func (*YAML) AddNode added in v1.7.0

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

func (*YAML) Name added in v1.7.0

func (y *YAML) Name() string

func (*YAML) Write added in v1.7.0

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