|
package voter
|
|
|
|
import (
|
|
"gitlab.com/wpetit/goweb/service"
|
|
)
|
|
|
|
func ServiceProvider(strategy Strategy, voters ...Voter) service.Provider {
|
|
manager := NewManager(strategy, voters...)
|
|
|
|
return func(ctn *service.Container) (interface{}, error) {
|
|
return manager, nil
|
|
}
|
|
}
|