Skip to content

Commit

Permalink
add a noop notifier for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmichels committed Jun 13, 2023
1 parent d2d452a commit d84df64
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions notifier/noop.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package notifier

import (
"context"

coursesense "github.com/jacobmichels/Course-Sense-Go"
)

var _ coursesense.Notifier = Noop{}

type Noop struct {
}

func NewNoop() Noop {
return Noop{}
}

func (n Noop) Notify(ctx context.Context, section coursesense.Section, watchers ...coursesense.Watcher) error {
return nil
}

0 comments on commit d84df64

Please sign in to comment.