avoid exporting notificationState and notificationStateSlice

This commit is contained in:
bergquist
2018-10-02 14:03:30 +02:00
parent 9022e871e3
commit b45a1bd45c
3 changed files with 10 additions and 10 deletions

View File

@@ -30,14 +30,14 @@ type Notifier interface {
GetFrequency() time.Duration
}
type NotifierState struct {
type notifierState struct {
notifier Notifier
state *models.AlertNotificationState
}
type NotifierStateSlice []*NotifierState
type notifierStateSlice []*notifierState
func (notifiers NotifierStateSlice) ShouldUploadImage() bool {
func (notifiers notifierStateSlice) ShouldUploadImage() bool {
for _, ns := range notifiers {
if ns.notifier.NeedsImage() {
return true