Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindInterfaces ¶
func FindInterfaces() (intfsWithAddress []string)
func PcapVersion ¶
func PcapVersion() string
Types ¶
type AddrList ¶
func ResolveAddrList ¶
func ResolveAddrPatterns ¶
func (AddrList) AddResolved ¶
func (AddrList) RequiresPromisc ¶
type Options ¶
type Options struct { Sources []string `` /* 150-byte string literal not displayed */ Destinations []string `` /* 131-byte string literal not displayed */ Headers []string `short:"H" long:"header" description:"Set or replace request header in duplicated traffic." value-name:"LINE"` Methods []string `short:"m" long:"method" description:"Only forward requests with specific HTTP methods." value-name:"VERB"` Multiply float32 `short:"n" long:"multiply" description:"Increase or reduce the number of requests by a factor." value-name:"N"` Verbose bool `short:"v" long:"verbose" description:"Show extra information, including all request headers."` }
type Stream ¶
type Stream struct { tcpreader.ReaderStream // contains filtered or unexported fields }
type Wiretap ¶
type Wiretap struct { Sources AddrList Destinations AddrList Interfaces []string Headers map[string]string Methods map[string]bool Multiply float32 RepeatDelay time.Duration Logger *log.Logger Verbose bool BufSize int32 Timeout time.Duration Transport http.Transport }
func NewWiretap ¶
Click to show internal directories.
Click to hide internal directories.