goweb/cqrs/provider.go

14 lines
279 B
Go

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
}
}