Documentation ¶
Index ¶
- Constants
- func CopyMulty(src io.Reader, writers ...io.Writer) (err error)
- func Debug(args ...interface{})
- func InitPlugins()
- func NewHTTPOutput(options string, headers HTTPHeaders, elasticSearchAddr string) io.Writer
- func NewTCPOutput(options string) io.Writer
- func ParseRequest(data []byte) (request *http.Request, err error)
- func Start(stop chan int)
- type AppSettings
- type DummyInput
- type DummyOutput
- type FileInput
- type FileOutput
- type HTTPHeader
- type HTTPHeaders
- type HTTPOutput
- type InOutPlugins
- type Limiter
- type MultiOption
- type RAWInput
- type RawRequest
- type RedirectNotAllowed
- type TCPInput
- type TCPOutput
- type TestInput
- type TestOutput
Constants ¶
View Source
const (
VERSION = "0.7.0"
)
Variables ¶
This section is empty.
Functions ¶
func InitPlugins ¶
func InitPlugins()
func NewHTTPOutput ¶
func NewHTTPOutput(options string, headers HTTPHeaders, elasticSearchAddr string) io.Writer
func NewTCPOutput ¶
func ParseRequest ¶
ParseRequest in []byte returns a http request or an error
Types ¶
type AppSettings ¶
type AppSettings struct {
// contains filtered or unexported fields
}
var Settings AppSettings = AppSettings{}
type DummyInput ¶
type DummyInput struct {
// contains filtered or unexported fields
}
func NewDummyInput ¶
func NewDummyInput(options string) (di *DummyInput)
func (*DummyInput) String ¶
func (i *DummyInput) String() string
type DummyOutput ¶
type DummyOutput struct { }
func NewDummyOutput ¶
func NewDummyOutput(options string) (di *DummyOutput)
func (*DummyOutput) String ¶
func (i *DummyOutput) String() string
type FileInput ¶
type FileInput struct {
// contains filtered or unexported fields
}
func NewFileInput ¶
type FileOutput ¶
type FileOutput struct {
// contains filtered or unexported fields
}
func NewFileOutput ¶
func NewFileOutput(path string) (o *FileOutput)
func (*FileOutput) Init ¶
func (o *FileOutput) Init(path string)
func (*FileOutput) String ¶
func (o *FileOutput) String() string
type HTTPHeader ¶
type HTTPHeaders ¶
type HTTPHeaders []HTTPHeader
func (*HTTPHeaders) Set ¶
func (h *HTTPHeaders) Set(value string) error
func (*HTTPHeaders) String ¶
func (h *HTTPHeaders) String() string
type HTTPOutput ¶
type HTTPOutput struct {
// contains filtered or unexported fields
}
func (*HTTPOutput) String ¶
func (o *HTTPOutput) String() string
type InOutPlugins ¶
var Plugins *InOutPlugins = new(InOutPlugins)
type MultiOption ¶
type MultiOption []string
func (*MultiOption) Set ¶
func (h *MultiOption) Set(value string) error
func (*MultiOption) String ¶
func (h *MultiOption) String() string
type RAWInput ¶
type RAWInput struct {
// contains filtered or unexported fields
}
func NewRAWInput ¶
type RawRequest ¶
type RedirectNotAllowed ¶
type RedirectNotAllowed struct{}
func (*RedirectNotAllowed) Error ¶
func (e *RedirectNotAllowed) Error() string
type TCPInput ¶
type TCPInput struct {
// contains filtered or unexported fields
}
Can be tested using nc tool:
echo "asdad" | nc 127.0.0.1 27017
func NewTCPInput ¶
type TestInput ¶
type TestInput struct {
// contains filtered or unexported fields
}
func NewTestInput ¶
func NewTestInput() (i *TestInput)
type TestOutput ¶
type TestOutput struct {
// contains filtered or unexported fields
}
func NewTestOutput ¶
func NewTestOutput(cb writeCallback) (i *TestOutput)
func (*TestOutput) String ¶
func (i *TestOutput) String() string
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Gor is simple http traffic replication tool written in Go.
|
Gor is simple http traffic replication tool written in Go. |
Click to show internal directories.
Click to hide internal directories.