docs: registry

This commit is contained in:
2026-02-09 18:26:03 -05:00
parent 2a028d95ec
commit 98b327103f
6 changed files with 72 additions and 27 deletions

View File

@@ -10,14 +10,14 @@ type Process interface {
InType() string
}
type convertedProcess[T any] struct {
type registeredProcess[T any] struct {
process engine.Process[T]
inType string
}
func (e convertedProcess[T]) InType() string { return e.inType }
func (e registeredProcess[T]) InType() string { return e.inType }
func (b convertedProcess[T]) Get() (Expr, error) {
func (b registeredProcess[T]) Get() (Expr, error) {
s, err := b.process.Get()
if err != nil {
return nil, err
@@ -26,6 +26,6 @@ func (b convertedProcess[T]) Get() (Expr, error) {
return NewExpr(b.inType, s), nil
}
func (b convertedProcess[T]) Step(i int) bool {
func (b registeredProcess[T]) Step(i int) bool {
return b.process.Step(i)
}