16 lines
262 B
Go
16 lines
262 B
Go
|
package storage
|
||
|
|
||
|
import (
|
||
|
"gitlab.com/wpetit/goweb/service"
|
||
|
)
|
||
|
|
||
|
func ServiceProvider(userRepo UserRepository) service.Provider {
|
||
|
srv := &Service{
|
||
|
userRepository: userRepo,
|
||
|
}
|
||
|
|
||
|
return func(ctn *service.Container) (interface{}, error) {
|
||
|
return srv, nil
|
||
|
}
|
||
|
}
|