Documentation
¶
Index ¶
- type Context
- func (context *Context) AppendConsumerRDiff(timestamp int64)
- func (context *Context) AppendProducerSDiff(timestamp int64)
- func (context *Context) CalcConsuemrAvg()
- func (context *Context) CalcConsuemrExcludeFirstAvg()
- func (context *Context) CalcProducerAvg()
- func (context *Context) CalcProducerExcludeFirstAvg()
- func (context *Context) MaxTimeConsumer(value int)
- func (context *Context) MaxTimeProducer(value int)
- func (context *Context) MinTimeConsumer(value int)
- func (context *Context) MinTimeProducer(value int)
- func (context *Context) ShowResult()
- type MsgKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { BootstrapServer string Topic string MsgCount int MsgByteSize int Consumer struct { ReciveTimeDiff []int64 AvgExcludeFirst int Average int SuccessCount int FailCount int EtcCount int MaxTime int MinTime int } Producer struct { SendTimeDiff []int64 AvgExcludeFirst int Average int SuccessCount int FailCount int EtcCount int MaxTime int MinTime int } }
func NewContext ¶
func (*Context) AppendConsumerRDiff ¶
func (*Context) AppendProducerSDiff ¶
func (*Context) CalcConsuemrAvg ¶
func (context *Context) CalcConsuemrAvg()
func (*Context) CalcConsuemrExcludeFirstAvg ¶
func (context *Context) CalcConsuemrExcludeFirstAvg()
func (*Context) CalcProducerAvg ¶
func (context *Context) CalcProducerAvg()
func (*Context) CalcProducerExcludeFirstAvg ¶
func (context *Context) CalcProducerExcludeFirstAvg()
func (*Context) MaxTimeConsumer ¶
func (*Context) MaxTimeProducer ¶
func (*Context) MinTimeConsumer ¶
func (*Context) MinTimeProducer ¶
func (*Context) ShowResult ¶
func (context *Context) ShowResult()
Click to show internal directories.
Click to hide internal directories.