catalogdiagrams

package
v1.4.220 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

package catalogdiagrams is a re-write of a whole bunch of internal sysl diagramming code but with fixes so that it can work better with the markdown generator, for example it can recursively get all types unlike the sysl datamodeldiagram package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDataModel added in v1.2.30

func GenerateDataModel(parentAppName string, t TypeMap) string

GenerateDataModel takes all the types in parentAppName and generates data model diagrams for it

Types

type DataModelParam

type DataModelParam struct {
	datamodeldiagram.DataModelParam
}

type DataModelView

type DataModelView struct {
	datamodeldiagram.DataModelView
}

func (*DataModelView) GenerateDataView

func (v *DataModelView) GenerateDataView(dataParam *DataModelParam, appName string, tMap TypeMap) string

type TypeData added in v1.4.123

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

func NewTypeData added in v1.4.123

func NewTypeData(alias string, t *sysl.Type) *TypeData

func TypeFromRef

func TypeFromRef(mod *sysl.Module, appName string, t *TypeData) (string, string, *TypeData)

TypeFromRef take a type data and recursively traverse through TypeRefs and fetch the actual type data.

type TypeMap added in v1.4.123

type TypeMap map[string]*TypeData

func FromSyslTypeMap added in v1.4.123

func FromSyslTypeMap(appName string, t map[string]*sysl.Type) TypeMap

func RecursivelyGetTypes added in v1.4.29

func RecursivelyGetTypes(appName string, types TypeMap, m *sysl.Module) TypeMap

func RecursivelyGetTypesHelper added in v1.4.29

func RecursivelyGetTypesHelper(appName string, t *TypeData, m *sysl.Module, cummulative TypeMap) TypeMap

RecursivelyGetTypesHelper gets returns a type map of a type and all of its fields recursively.

Jump to

Keyboard shortcuts

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