-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
notifier: Refactor and add client certificate authentification support. #29
Conversation
6cafe4f
to
8260b17
Compare
// A Notification represents the structure of the notifications that are sent by a Notifier. | ||
type Notification struct { | ||
Name, Type string | ||
Content interface{} |
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.
Eventually we should change this type to something like json.Marshaller
.
8260b17
to
7c70362
Compare
Updated. |
7c70362
to
7e6133a
Compare
func (notifier *HTTPNotifier) Run(st *utils.Stopper) { | ||
defer st.End() | ||
// NewNotifier initializes a new Notifier from the specified configuration. | ||
func NewNotifier(cfg Config) *Notifier { |
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.
You could just call this New
to make it less redundant. It would look like notifier.New()
then.
rebase |
203607f
to
0ec7ad5
Compare
0ec7ad5
to
9946382
Compare
LGTM |
notifier: Refactor and add client certificate authentification support.
Fixes #23