sequence

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagram

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

Diagram represents a diagram

func NewDiagram

func NewDiagram(filename string) *Diagram

NewDiagram init function

func (*Diagram) AddDirectionalEdge

func (d *Diagram) AddDirectionalEdge(from, to string, label string) error

AddDirectionalEdge adds a connection (renders as an arrowed line) between two participants

func (*Diagram) AddParticipants

func (d *Diagram) AddParticipants(name ...string)

AddParticipants sets the `participant` array on the Diagram object

func (*Diagram) AddUndirectionalEdge

func (d *Diagram) AddUndirectionalEdge(from, to string, label string) error

AddUndirectionalEdge adds a connection (renders as a line) between two participants

func (*Diagram) Render

func (d *Diagram) Render()

Render generates an image from a `Diagram` object

func (*Diagram) SetTitle

func (d *Diagram) SetTitle(s string)

SetTitle sets the diagram's title

Jump to

Keyboard shortcuts

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