mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
add flags for file to listener
This commit is contained in:
@@ -18,7 +18,8 @@ type ListenerSettings struct {
|
||||
Port int
|
||||
Address string
|
||||
|
||||
ReplayAddress string
|
||||
ReplayAddress string
|
||||
FileToReplyPath string
|
||||
|
||||
ReplayLimit int
|
||||
|
||||
@@ -48,5 +49,7 @@ func init() {
|
||||
|
||||
flag.StringVar(&Settings.ReplayAddress, "r", defaultReplayAddress, "Address of replay server.")
|
||||
|
||||
flag.StringVar(&Settings.FileToReplyPath, "file", nil, "File to store captured requests")
|
||||
|
||||
flag.BoolVar(&Settings.Verbose, "verbose", false, "Log requests")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user