Files
goreplay/pkg/null/output_null.go
2023-01-15 18:58:36 +03:00

22 lines
471 B
Go

package null
import "github.com/buger/goreplay/pkg/plugin"
// 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 *plugin.Message) (int, error) {
return len(msg.Data) + len(msg.Meta), nil
}
func (o *NullOutput) String() string {
return "Null Output"
}