constvar/const.go
@@ -79,3 +79,21 @@ ParityOdd Parity = 2 //偶校验 ParityNull Parity = 3 //无校验 ) func (p Parity) String() string { switch p { case ParityEven: return "E" case ParityOdd: return "O" case ParityNull: return "N" } return "" } const ( SerfClusterStatusNull = "" //未加入集群 SerfClusterStatusMaster = "master" //集群master SerfClusterStatusSlave = "slave" //集群slave )