srtructurizr

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeID added in v1.10.0

func SafeID(v string) (id string)

Types

type Component added in v1.10.0

type Component struct {
	ID          string
	Name        string
	Description string
	Technology  string
	Tags        []string
}

func (*Component) Write added in v1.10.0

func (c *Component) Write(w io.Writer, level int)

type Container

type Container struct {
	ID          string
	Name        string
	Description string
	Technology  string
	Tags        []string
	Components  []*Component
}

func (*Container) Write

func (c *Container) Write(w io.Writer, level int)

type Relation

type Relation struct {
	Src  string
	Dst  string
	Tags []string
}

type System

type System struct {
	ID          string
	Name        string
	Description string
	Tags        []string
	// contains filtered or unexported fields
}

func NewSystem

func NewSystem(name string) *System

func (*System) AddContainer

func (s *System) AddContainer(id, name string) (c *Container, ok bool)

func (*System) AddRelation

func (s *System) AddRelation(srcID, dstID, srcName, dstName string) (rv *Relation, ok bool)

func (*System) WriteContainers

func (s *System) WriteContainers(w io.Writer, level int)

func (*System) WriteRelations

func (s *System) WriteRelations(w io.Writer, level int)

func (*System) WriteViews added in v1.10.0

func (s *System) WriteViews(w io.Writer, level int)

type Workspace

type Workspace struct {
	Name        string
	Description string
	// contains filtered or unexported fields
}

func NewWorkspace added in v1.6.0

func NewWorkspace(name, defaultSystem string) *Workspace

func (*Workspace) AddRelation added in v1.6.0

func (ws *Workspace) AddRelation(srcID, dstID, srcName, dstName string) (rv *Relation, ok bool)

func (*Workspace) HasSystem added in v1.6.0

func (ws *Workspace) HasSystem(name string) (yes bool)

func (*Workspace) System

func (ws *Workspace) System(name string) (rv *System)

func (*Workspace) Write

func (ws *Workspace) Write(w io.Writer)

Jump to

Keyboard shortcuts

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