yeast/impl/echo.go
Gregory Eremin 8748c22d6e Keep actor private
Also this:
core/units.go:21: impl.Impl.Call is a field, not a method
2015-02-11 01:45:13 +07:00

12 lines
210 B
Go

package impl
// Implementation of a echo unit
// Comes handy when you need to mock a unit
func Echo() *Impl {
return &Impl{
actor: func(data []byte) (resp []byte, err error) {
return data, nil
},
}
}