1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-04-25 12:24:56 +02:00

chore(comment): put actual type names into comments

This commit is contained in:
Niko Köser 2021-02-10 14:51:32 +01:00
parent 4ffb7c09cf
commit 236e66e284
No known key found for this signature in database
GPG Key ID: F3F28C118DAA6375
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import (
"golang.org/x/sync/errgroup"
)
// Send calls the underlying notification services to send the given message to their respective endpoints.
// Send calls the underlying notification services to send the given subject and message to their respective endpoints.
func (n Notify) Send(subject, message string) error {
if n.Disabled {
return nil

4
use.go
View File

@ -1,6 +1,6 @@
package notify
// useService adds a given service to the notifiers services list.
// useService adds a given service to the Notifier's services list.
func (n *Notify) useService(service Notifier) {
if service == nil {
return
@ -8,7 +8,7 @@ func (n *Notify) useService(service Notifier) {
n.notifiers = append(n.notifiers, service)
}
// UseServices adds the given service(s) to the notifiers services list.
// UseServices adds the given service(s) to the Notifier's services list.
func (n *Notify) UseServices(service ...Notifier) {
for _, s := range service {
n.useService(s)