func (st StateType) MarshalJSON() ([]byte, error) { … }
func min(a, b uint64) uint64 { … }
func max(a, b uint64) uint64 { … }
func IsLocalMsg(msgt pb.MessageType) bool { … }
func IsResponseMsg(msgt pb.MessageType) bool { … }
func voteRespMsgType(msgt pb.MessageType) pb.MessageType { … }
func DescribeHardState(hs pb.HardState) string { … }
func DescribeSoftState(ss SoftState) string { … }
func DescribeConfState(state pb.ConfState) string { … }
func DescribeSnapshot(snap pb.Snapshot) string { … }
func DescribeReady(rd Ready, f EntryFormatter) string { … }
type EntryFormatter …
func DescribeMessage(m pb.Message, f EntryFormatter) string { … }
func PayloadSize(e pb.Entry) int { … }
func DescribeEntry(e pb.Entry, f EntryFormatter) string { … }
func DescribeEntries(ents []pb.Entry, f EntryFormatter) string { … }
func limitSize(ents []pb.Entry, maxSize uint64) []pb.Entry { … }
func assertConfStatesEquivalent(l Logger, cs1, cs2 pb.ConfState) { … }