adapters

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package adapters contains implementations of port interfaces.

Adapters are the concrete implementations that interact with external systems or provide specific algorithms. They implement the port interfaces defined in the usecases package.

Structure:

  • config/ : Configuration file parsers (YAML, JSON, etc.)
  • layout/ : Layout algorithms (FlowSquare, TopoSort, etc.)
  • pathfinding/: Pathfinding algorithms (Dijkstra, A*, etc.)
  • rendering/ : Output renderers (SVG, PNG, etc.)

Each adapter is independent and can be tested in isolation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToLayoutConfig

func ToLayoutConfig(d *domain.Diagram) layout.Config

ToLayoutConfig converts a domain diagram to a layout config. This is used by multiple adapters to ensure consistent type mapping.

func ToLayoutConfigWithFullPaths added in v0.0.16

func ToLayoutConfigWithFullPaths(d *domain.Diagram) layout.Config

ToLayoutConfigWithFullPaths is like ToLayoutConfigWithPath but includes pathfinding algorithm settings.

func ToLayoutConfigWithPath

func ToLayoutConfigWithPath(d *domain.Diagram) layout.Config

ToLayoutConfigWithPath is like ToLayoutConfig but includes the path configuration. Used by the pathfinder adapter.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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