Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryLoader ¶
type InMemoryLoader struct {
// contains filtered or unexported fields
}
InMemoryLoader is a simple implementation of ports.GraphLoader for testing.
func NewInMemoryLoader ¶
func NewInMemoryLoader() *InMemoryLoader
NewInMemoryLoader creates a new empty loader.
func (*InMemoryLoader) AddNode ¶
func (l *InMemoryLoader) AddNode(id string, data []byte)
AddNode allows pre-populating the loader for tests.
type LoamLoader ¶
type LoamLoader struct {
Repo *loam.TypedRepository[NodeMetadata]
}
LoamLoader adapts the Loam library to the Trellis GraphLoader interface.
func NewLoamLoader ¶
func NewLoamLoader(repo *loam.TypedRepository[NodeMetadata]) *LoamLoader
NewLoamLoader creates a new Loam adapter.
type NodeMetadata ¶
type NodeMetadata struct {
ID string `json:"id"`
Type string `json:"type"`
Transitions []domain.Transition `json:"transitions"`
}
NodeMetadata represents the header/metadata of a Trellis Node. It matches the domain.Node fields minus Content.
Click to show internal directories.
Click to hide internal directories.