goweb/cqrs/provider.go

14 lines
279 B
Go
Raw Normal View History

2020-04-16 16:32:02 +02:00
package cqrs
import "gitlab.com/wpetit/goweb/service"
// ServiceProvider returns a service.Provider for the
// the cqrs service
func ServiceProvider() service.Provider {
bus := NewBus()
return func(container *service.Container) (interface{}, error) {
return bus, nil
}
}