Documentation ¶
Index ¶
- func NewJSONKeys(uri, method, time, responseTime, requestTime, size, status string) *statKeys
- func NewLTSVLabel(uri, method, time, responseTime, requestTime, size, status string) *statKeys
- func NewSubexpNames(uri, method, time, responseTime, requestTime, size, status string) *statKeys
- type JSONParser
- type LTSVParser
- type LogEntries
- type ParsedHTTPStat
- type Parser
- func NewJSONParser(r io.Reader, keys *statKeys, query, qsIgnoreValues bool) Parser
- func NewLTSVParser(r io.Reader, l *statKeys, query, qsIgnoreValues bool) Parser
- func NewPcapParser(r io.Reader, rawServerIPs []string, serverPort uint16, ...) (Parser, error)
- func NewRegexpParser(r io.Reader, expr string, names *statKeys, query, qsIgnoreValues bool) (Parser, error)
- type PcapParser
- type RegexpParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJSONKeys ¶
func NewJSONKeys(uri, method, time, responseTime, requestTime, size, status string) *statKeys
func NewLTSVLabel ¶
func NewLTSVLabel(uri, method, time, responseTime, requestTime, size, status string) *statKeys
func NewSubexpNames ¶
func NewSubexpNames(uri, method, time, responseTime, requestTime, size, status string) *statKeys
Types ¶
type JSONParser ¶
type JSONParser struct {
// contains filtered or unexported fields
}
func (*JSONParser) Parse ¶
func (j *JSONParser) Parse() (*ParsedHTTPStat, error)
func (*JSONParser) ReadBytes ¶
func (j *JSONParser) ReadBytes() int
func (*JSONParser) Seek ¶
func (j *JSONParser) Seek(n int) error
func (*JSONParser) SetReadBytes ¶
func (j *JSONParser) SetReadBytes(n int)
type LTSVParser ¶
type LTSVParser struct {
// contains filtered or unexported fields
}
func (*LTSVParser) Parse ¶
func (l *LTSVParser) Parse() (*ParsedHTTPStat, error)
func (*LTSVParser) ReadBytes ¶
func (l *LTSVParser) ReadBytes() int
func (*LTSVParser) Seek ¶
func (l *LTSVParser) Seek(n int) error
func (*LTSVParser) SetReadBytes ¶
func (l *LTSVParser) SetReadBytes(n int)
type LogEntries ¶ added in v1.0.13
type ParsedHTTPStat ¶
type ParsedHTTPStat struct { Uri string Method string Time string ResponseTime float64 BodyBytes float64 Status int Entries LogEntries }
func NewParsedHTTPStat ¶
func NewParsedHTTPStat(uri, method, time string, resTime, bodyBytes float64, status int) *ParsedHTTPStat
type Parser ¶
type Parser interface { Parse() (*ParsedHTTPStat, error) ReadBytes() int SetReadBytes(n int) Seek(n int) error }
func NewJSONParser ¶
func NewLTSVParser ¶
func NewPcapParser ¶ added in v1.0.6
type PcapParser ¶ added in v1.0.6
type PcapParser struct {
// contains filtered or unexported fields
}
func (*PcapParser) Parse ¶ added in v1.0.6
func (j *PcapParser) Parse() (*ParsedHTTPStat, error)
func (*PcapParser) ReadBytes ¶ added in v1.0.6
func (j *PcapParser) ReadBytes() int
func (*PcapParser) Seek ¶ added in v1.0.6
func (j *PcapParser) Seek(n int) error
func (*PcapParser) SetReadBytes ¶ added in v1.0.6
func (j *PcapParser) SetReadBytes(n int)
type RegexpParser ¶
type RegexpParser struct {
// contains filtered or unexported fields
}
func (*RegexpParser) Parse ¶
func (rp *RegexpParser) Parse() (*ParsedHTTPStat, error)
func (*RegexpParser) ReadBytes ¶
func (rp *RegexpParser) ReadBytes() int
func (*RegexpParser) Seek ¶
func (rp *RegexpParser) Seek(n int) error
func (*RegexpParser) SetReadBytes ¶
func (rp *RegexpParser) SetReadBytes(n int)
Click to show internal directories.
Click to hide internal directories.