Move ParsedRequest{} to gor/utils sub-package

This de-dupes the type definition used in both `listener` and `replay`.
This commit is contained in:
Dan Carley
2013-10-23 17:17:32 +01:00
parent 714307890e
commit e7c1d86bfa
3 changed files with 21 additions and 19 deletions
+14
View File
@@ -0,0 +1,14 @@
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)
}