Versions in this module Expand all Collapse all v1 v1.0.1 Jan 10, 2021 v1.0.0 Jan 10, 2021 Changes in this version + type CountsStats struct + Fail uint64 + Success uint64 + type FollowerStats struct + Counts CountsStats + Latency LatencyStats + func (fs *FollowerStats) Fail() + func (fs *FollowerStats) Succ(d time.Duration) + type LatencyStats struct + Average float64 + Current float64 + Maximum float64 + Minimum float64 + StandardDeviation float64 + type LeaderStats struct + func NewLeaderStats(id string) *LeaderStats + func (ls *LeaderStats) Follower(name string) *FollowerStats + func (ls *LeaderStats) JSON() []byte + type RequestStats struct + SendingTime time.Time + Size int + type ServerStats struct + func NewServerStats(name, id string) *ServerStats + func (ss *ServerStats) BecomeLeader() + func (ss *ServerStats) JSON() []byte + func (ss *ServerStats) RecvAppendReq(leader string, reqSize int) + func (ss *ServerStats) SendAppendReq(reqSize int) + type Stats interface + LeaderStats func() []byte + SelfStats func() []byte + StoreStats func() []byte