mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Move ParsedRequest{} to gor/utils sub-package
This de-dupes the type definition used in both `listener` and `replay`.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user