writer

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2015 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpOutput

type HttpOutput struct {
	// contains filtered or unexported fields
}

func NewHttpOutput

func NewHttpOutput(options string) (di *HttpOutput)

func (*HttpOutput) IsPrintable

func (i *HttpOutput) IsPrintable(s string) bool

checks if s is ascii and printable, aka doesn't include tab, backspace, etc.

func (*HttpOutput) Output

func (i *HttpOutput) Output(requestData *httpRequestData, response *http.Response, rawResponseHeader string)

func (*HttpOutput) OutputBody

func (i *HttpOutput) OutputBody(body []byte)

func (*HttpOutput) OutputRAW

func (i *HttpOutput) OutputRAW(requestData *httpRequestData, response *http.Response, rawResponseHeader string)

func (*HttpOutput) OutputRequestLine

func (i *HttpOutput) OutputRequestLine(requestData *httpRequestData, response *http.Response, rawResponseHeader string)

func (*HttpOutput) ReadRawHeader

func (i *HttpOutput) ReadRawHeader(data []byte) string

func (*HttpOutput) String

func (i *HttpOutput) String() string

func (*HttpOutput) SubString

func (i *HttpOutput) SubString(text string, maxLen int) string

func (*HttpOutput) Write

func (i *HttpOutput) Write(data []byte, srcPort int, destPort int, srcAddr string, destAddr string, seq uint32) (int, error)

type MemcacheOutput

type MemcacheOutput struct {
	// contains filtered or unexported fields
}

func NewMemcacheOutput

func NewMemcacheOutput(options string) (di *MemcacheOutput)

func (*MemcacheOutput) Write

func (i *MemcacheOutput) Write(data []byte, srcPort int, destPort int, srcAddr string, destAddr string, seq uint32) (int, error)

type OutputWriter

type OutputWriter interface {
	Write(data []byte, srcPort int, destPort int, srcAddr string, destAddr string, seq uint32) (int, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL