yeast/impl/impl.go

21 lines
263 B
Go
Raw Normal View History

2015-02-11 01:23:58 +07:00
package impl
type (
Impl struct {
Call func([]byte) ([]byte, error)
}
)
func (i *Impl) Units() []string {
return []string{}
}
func New(name string) *Impl {
switch name {
case "units.throttler.Throttler":
return Throttler()
default:
return nil
}
}