Documentation ¶
Index ¶
- Constants
- type AccessLog
- type AccessLogReader
- func (a *AccessLogReader) Append(uri, method, time string, responseTime, bodyBytes float64, status int)
- func (a *AccessLogReader) Open(filename string) (*os.File, error)
- func (a *AccessLogReader) OpenPosFile(filename string) (*os.File, error)
- func (a *AccessLogReader) Print()
- func (a *AccessLogReader) ReadAll(parser parsers.Parser) error
- func (a *AccessLogReader) ReadPosFile(f *os.File) (int, error)
- func (a *AccessLogReader) SetInReader(f *os.File)
- func (a *AccessLogReader) Sort(sortType string, reverse bool) error
- func (a *AccessLogReader) SortBodyBytes(reverse bool)
- func (a *AccessLogReader) SortResponseTime(reverse bool)
- type PrintOptions
- type Printer
Constants ¶
View Source
const ( SortResponseTime = "restime" SortBodyBytes = "bytes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLog ¶
type AccessLog struct { Uri string Method string ResponseTime float64 BodyBytes float64 Status int TimeStr string }
func (*AccessLog) UriWithOptions ¶
type AccessLogReader ¶
type AccessLogReader struct {
// contains filtered or unexported fields
}
func NewAccessLogReader ¶
func (*AccessLogReader) Append ¶
func (a *AccessLogReader) Append(uri, method, time string, responseTime, bodyBytes float64, status int)
func (*AccessLogReader) OpenPosFile ¶
func (a *AccessLogReader) OpenPosFile(filename string) (*os.File, error)
func (*AccessLogReader) Print ¶
func (a *AccessLogReader) Print()
func (*AccessLogReader) ReadPosFile ¶
func (a *AccessLogReader) ReadPosFile(f *os.File) (int, error)
func (*AccessLogReader) SetInReader ¶
func (a *AccessLogReader) SetInReader(f *os.File)
func (*AccessLogReader) SortBodyBytes ¶
func (a *AccessLogReader) SortBodyBytes(reverse bool)
func (*AccessLogReader) SortResponseTime ¶
func (a *AccessLogReader) SortResponseTime(reverse bool)
type PrintOptions ¶
type PrintOptions struct {
// contains filtered or unexported fields
}
func NewPrintOptions ¶
func NewPrintOptions(noHeaders, decodeUri bool, paginationLimit int) *PrintOptions
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func NewPrinter(w io.Writer, format string, printOptions *PrintOptions) *Printer
func (*Printer) SetHeaders ¶
Click to show internal directories.
Click to hide internal directories.