Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event interface {
Event() stats.Event
Status() stats.Status
Info() string
Time() time.Time
IsNil() bool
}
Event is the abstraction of an event happened at a specific time.
type HTTPStats ¶
type HTTPStats interface {
Record(event stats.Event, status stats.Status, info string)
GetEvent(event stats.Event) Event
SendSize() int
SetSendSize(size int)
RecvSize() int
SetRecvSize(size int)
Error() error
SetError(err error)
Panicked() (bool, interface{})
SetPanicked(x interface{})
Level() stats.Level
SetLevel(level stats.Level)
Reset()
}
HTTPStats is used to collect statistics about the HTTP.
Click to show internal directories.
Click to hide internal directories.