|
|
|
@ -50,6 +50,8 @@ func Build(ccs *components.Components) (components.Server, error) {
|
|
|
|
|
|
|
|
|
|
// Start AFAIRE.
|
|
|
|
|
func (cs *server) Start() error { |
|
|
|
|
cs.logger.Info("Starting") //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
|
|
|
|
|
|
|
|
err := cs.server.ListenAndServe() |
|
|
|
|
if err == http.ErrServerClosed { |
|
|
|
|
return nil |
|
|
|
@ -71,6 +73,8 @@ func (cs *server) Stop() {
|
|
|
|
|
"reason", err, |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
cs.logger.Info("Stopped") //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|