summaryrefslogtreecommitdiff
path: root/service/container.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-13 20:49:26 +0300
committerWolfy-J <[email protected]>2018-06-13 20:49:26 +0300
commitfba45ff53a51bf173471e6d046fc46f0cbaf89e3 (patch)
tree0855eda2eb334d4d4f26157438649e0f58151f9d /service/container.go
parent87fff670cc5a446f4c396c30d330ce7958e9f40f (diff)
http service test + status test
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)