entity

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElementsIndicators

func ElementsIndicators(els []arch.Element) (maxLeft int, maxRight int)

Types

type Data

type Data struct {
	Text    string
	Port    string
	BgColor string
	RowSpan int
	ColSpan int
}

type Dot

type Dot struct {
	Name  string
	Label string

	SubGraphs []*SubGraph
	Edges     []*Edge

	Templates []string
}

func (*Dot) Write

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

type Edge

type Edge struct {
	From    string
	To      string
	Tooltip string
	L       string
	T       string
	A       string
}

type Node

type Node struct {
	ID      string
	Name    string
	BgColor string
	Table   *Table
}

func (*Node) Build

func (n *Node) Build(els []arch.Element) error

type Row

type Row struct {
	Data []*Data
}

type SubGraph

type SubGraph struct {
	Name  string
	Label string
	Nodes []*Node

	SubGraphs []*SubGraph
}

type Table

type Table struct {
	Rows []*Row
}

Jump to

Keyboard shortcuts

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