|
package hydra
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gitlab.com/wpetit/goweb/service"
|
|
)
|
|
|
|
func ServiceProvider(baseURL string, httpTimeout time.Duration) service.Provider {
|
|
client := NewClient(baseURL, httpTimeout)
|
|
|
|
return func(ctn *service.Container) (interface{}, error) {
|
|
return client, nil
|
|
}
|
|
}
|