2015-02-11 01:41:51 +07:00
|
|
|
package impl
|
|
|
|
|
|
|
|
// Implementation of a echo unit
|
|
|
|
// Comes handy when you need to mock a unit
|
|
|
|
func Echo() *Impl {
|
|
|
|
return &Impl{
|
2015-02-11 01:45:13 +07:00
|
|
|
actor: func(data []byte) (resp []byte, err error) {
|
2015-02-11 01:41:51 +07:00
|
|
|
return data, nil
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|