Files
goreplay/utils/utils.go
T
Dan Carley e7c1d86bfa Move ParsedRequest{} to gor/utils sub-package
This de-dupes the type definition used in both `listener` and `replay`.
2013-10-23 17:17:32 +01:00

15 lines
234 B
Go

package utils
import (
"fmt"
)
type ParsedRequest struct {
Timestamp int64
Request []byte
}
func (self ParsedRequest) String() string {
return fmt.Sprintf("Request: %v, timestamp: %v", string(self.Request), self.Timestamp)
}