type Config struct {
CommitIndex uint64 `json:"commitIndex"`
// TODO decide what we need to store in peer struct
Peers []*Peer `json:"peers"`
}
我明白前两列是什么,但什么是json:"commitIndex"?
相关分类