Skip to content

Commit

Permalink
more of the published interface must remain the same
Browse files Browse the repository at this point in the history
  • Loading branch information
maplebed committed Feb 15, 2019
1 parent 6ea6c07 commit b4aecc2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions writer.go
Expand Up @@ -24,3 +24,13 @@ func (w *WriterOutput) Add(ev *Event) {
}
w.WriterSender.Add(transEv)
}

// DiscardWriter implements the Output interface and drops all events. It is
// deprecated and you sholud use the transmission.DiscardSender directly
// instead. It is provided here for backwards compatibility and will be removed
// eventually.
type DiscardOutput struct {
WriterOutput
}

func (d *DiscardOutput) Add(ev *Event) {}

0 comments on commit b4aecc2

Please sign in to comment.