mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
change package from `main -> goreplay` this will allow importing `goreplay` as a package
20 lines
421 B
Go
20 lines
421 B
Go
package goreplay
|
|
|
|
// NullOutput used for debugging, prints nothing
|
|
type NullOutput struct {
|
|
}
|
|
|
|
// NewNullOutput constructor for NullOutput
|
|
func NewNullOutput() (o *NullOutput) {
|
|
return new(NullOutput)
|
|
}
|
|
|
|
// PluginWrite writes message to this plugin
|
|
func (o *NullOutput) PluginWrite(msg *Message) (int, error) {
|
|
return len(msg.Data) + len(msg.Meta), nil
|
|
}
|
|
|
|
func (o *NullOutput) String() string {
|
|
return "Null Output"
|
|
}
|