Documentation ¶
Index ¶
- type Wrapper
- func (wrp *Wrapper) BeginQuery() int32
- func (wrp *Wrapper) FillMetrics(info *openlatency.MetricsInfo)
- func (wrp *Wrapper) IncError(etype openlatency.MetricErrorType, code string)
- func (wrp *Wrapper) IncNobid() int32
- func (wrp *Wrapper) IncSkip() int32
- func (wrp *Wrapper) IncSuccess() int32
- func (wrp *Wrapper) IncTimeout() int32
- func (wrp *Wrapper) UpdateQueryLatency(latency time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
type Wrapper struct {
// contains filtered or unexported fields
}
func NewWrapperDefault ¶
func (*Wrapper) FillMetrics ¶
func (wrp *Wrapper) FillMetrics(info *openlatency.MetricsInfo)
FillMetrics info object
func (*Wrapper) IncError ¶
func (wrp *Wrapper) IncError(etype openlatency.MetricErrorType, code string)
IncError counter
func (*Wrapper) UpdateQueryLatency ¶
UpdateQueryLatency of request
Click to show internal directories.
Click to hide internal directories.