interfaces

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DSLGenerator

type DSLGenerator interface {
	// Generate creates target platform DSL from unified DSL
	Generate(unifiedDSL *models.UnifiedDSL) ([]byte, error)

	// Validate checks if unified DSL meets target platform requirements
	Validate(unifiedDSL *models.UnifiedDSL) error

	// GetPlatformType returns the platform type supported by the generator
	GetPlatformType() models.PlatformType
}

DSLGenerator defines the unified DSL generator interface

type DSLParser

type DSLParser interface {
	// Parse converts DSL file to unified format
	Parse(data []byte) (*models.UnifiedDSL, error)

	// Validate checks if input data format is correct
	Validate(data []byte) error

	// GetPlatformType returns the platform type supported by the parser
	GetPlatformType() models.PlatformType
}

DSLParser defines the unified DSL parser interface

type IDMapper

type IDMapper interface {
	// MapNodeID maps node ID
	MapNodeID(originalID string, nodeType models.NodeType) string

	// GetMapping returns the complete mapping table
	GetMapping() map[string]string

	// SetMapping sets the mapping table
	SetMapping(mapping map[string]string)
}

IDMapper defines the ID mapper interface

Jump to

Keyboard shortcuts

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