Erweiterungen an der Dokumentation

This commit is contained in:
SourceFellows
2020-10-23 16:15:43 +02:00
parent d810dc50b4
commit 36ff7c539c
8 changed files with 29 additions and 11 deletions

View File

@ -7,7 +7,8 @@ import (
"training-fellow.de/registrierung"
)
func NewNotifier(url string) *notifier {
//NewNotifier erzeugt eine neue Instanz eines RegistrierungsNotifier für die Kommunikation mit NATS
func NewNotifier(url string) registrierung.RegistrierungsNotifier {
return &notifier{url}
}
@ -15,6 +16,7 @@ type notifier struct {
url string
}
//InformAboutNewRegistrierung informiert über eine neue Registrierung
func (nn *notifier) InformAboutNewRegistrierung(registrierung *registrierung.Registrierung) error {
notifierLogger := log.WithField("Registrierung", registrierung)