docs: registry
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user