model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package model allowing to load different data models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryModel

type BinaryModel struct {
	CompilerConfig CompilerConfig        `yaml:"compilerConfig"`
	Vars           structures.Dictionary `yaml:"vars"`
	BinData        any                   `yaml:"binData"`
}

type BinaryModelLoader

type BinaryModelLoader struct{}

func NewBinaryModelLoader

func NewBinaryModelLoader() *BinaryModelLoader

func (*BinaryModelLoader) Load

func (binaryModelContext *BinaryModelLoader) Load(
	targetDir string,
	binaryModelFilePath string,
	binaryModelBaseName string,
	referenceDir string,
	intermediateFileCallback func(
		targetDir string, basename string, suffix string, tempYamlFile string,
	) (err error),
	intermediateFileContentCallback func(
		targetDir string, basename string, suffix string, content string,
	) (err error),
) (_ *BinaryModel, err error)

type CompilerConfig

type CompilerConfig struct {
	AnnotationsConfig               structures.Dictionary `yaml:"annotationsConfig"`
	TargetFile                      string                `yaml:"targetFile"`
	RelativeRootDirBasedOnTargetDir string                `yaml:"relativeRootDirBasedOnTargetDir"`
	CommandDefinitionFiles          []string              `yaml:"commandDefinitionFiles"`
	TemplateFile                    string                `yaml:"templateFile"`
	TemplateDirs                    []string              `yaml:"templateDirs"`
	FunctionsIgnoreRegexpList       []string              `yaml:"functionsIgnoreRegexpList"`
	SrcDirs                         []string              `yaml:"srcDirs"`
	SrcDirsExpanded                 []string              `yaml:"-"`
	TargetDir                       string                `yaml:"-"`
	KeepIntermediateFiles           bool                  `yaml:"-"`
	BinaryModelFilePath             string                `yaml:"-"`
	BinaryModelBaseName             string                `yaml:"-"`
	IntermediateFilesCount          int                   `yaml:"-"`
}

func (*CompilerConfig) DebugSaveIntermediateFile added in v1.0.0

func (compilerConfig *CompilerConfig) DebugSaveIntermediateFile(
	code string,
	suffix string,
)

Jump to

Keyboard shortcuts

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