-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
disable/enable SMS and other modules, at runtime #25
Conversation
…/stop logic exposed using endpoint for all modules, with their name as URL parameters
… becomes idempotent
… names / packages
…start, only on restart
…on Stop; tests are passing
…bscribing on Stop; adding and fixing tests
server/connector/connector.go
Outdated
c.cancel() | ||
c.cancel=nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
server/service/service.go
Outdated
le.WithError(err).Error("Error while stopping module") | ||
} | ||
w.Write([]byte(fmt.Sprintf("%s was stopped.\n", modulePackage))) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what response is returned if an error is encountered.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added proper error-handling
No description provided.