mirror of
https://github.com/buger/goreplay.git
synced 2026-10-20 08:17:39 +00:00
25 lines
340 B
Go
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"
|
|
}
|