goweb/cqrs/provider.go

14 lines
300 B
Go
Raw Permalink 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 {
2020-07-07 08:19:15 +02:00
dispatcher := NewDispatcher()
2020-04-16 16:32:02 +02:00
return func(container *service.Container) (interface{}, error) {
2020-07-07 08:19:15 +02:00
return dispatcher, nil
2020-04-16 16:32:02 +02:00
}
}