catalogdiagrams

package
v0.0.0-...-59132f5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 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

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

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

func NewTypeData

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

type TypeMap map[string]*TypeData

func FromSyslTypeMap

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

func RecursivelyGetTypes

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

func RecursivelyGetTypesHelper

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