Files
goreplay/output_dummy.go
T
2013-10-27 18:49:00 +00:00

25 lines
340 B
Go

package gor
import (
"fmt"
)
type DummyOutput struct {
}
func NewDummyOutput(options string) (di *DummyOutput) {
di = new(DummyOutput)
return
}
func (i *DummyOutput) Write(data []byte) (int, error) {
fmt.Println("Writing message: ", data)
return len(data), nil
}
func (i *DummyOutput) String() string {
return "Dummy Output"
}