mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
27 lines
459 B
Go
27 lines
459 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// DummyOutput used for debugging, prints all incoming requests
|
|
type DummyOutput struct {
|
|
}
|
|
|
|
// NewDummyOutput constructor for DummyOutput
|
|
func NewDummyOutput(options string) (di *DummyOutput) {
|
|
di = new(DummyOutput)
|
|
|
|
return
|
|
}
|
|
|
|
func (i *DummyOutput) Write(data []byte) (int, error) {
|
|
fmt.Println("Writing message: ", string(data))
|
|
|
|
return len(data), nil
|
|
}
|
|
|
|
func (i *DummyOutput) String() string {
|
|
return "Dummy Output"
|
|
}
|