summaryrefslogtreecommitdiff
path: root/service/container.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/container.go')
-rw-r--r--service/container.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/container.go b/service/container.go
index 7c7633e7..ce9146bc 100644
--- a/service/container.go
+++ b/service/container.go
@@ -23,7 +23,7 @@ type Container interface {
Register(name string, service Service)
// Reconfigure configures all underlying services with given configuration.
- Configure(cfg Config) error
+ Init(cfg Config) error
// Check if svc has been registered.
Has(service string) bool
@@ -96,7 +96,7 @@ func (c *container) Get(target string) (svc Service, status int) {
}
// Init configures all underlying services with given configuration.
-func (c *container) Configure(cfg Config) error {
+func (c *container) Init(cfg Config) error {
for _, e := range c.services {
if e.getStatus() >= StatusConfigured {
return fmt.Errorf("service [%s] has already been configured", e.name)