@@ -90,7 +90,7 @@ type HashConf struct {
9090 SessionSticky * bool
9191}
9292
93- // Cluster conf for Gslb
93+ // GslbBasicConf is basic conf for Gslb
9494type GslbBasicConf struct {
9595 CrossRetry * int // retry cross sub clusters
9696 RetryMax * int // inner cluster retry
@@ -111,7 +111,7 @@ type ClusterBasicConf struct {
111111 CancelOnClientClose * bool // cancel blocking operation on server if client connection disconnected
112112}
113113
114- // ClusterBasicConf is conf of cluster.
114+ // ClusterConf is conf of cluster.
115115type ClusterConf struct {
116116 BackendConf * BackendBasic // backend's basic conf
117117 CheckConf * BackendCheck // how to check backend
@@ -222,7 +222,7 @@ func MatchStatusCode(statusCodeGet int, statusCodeExpect int) (bool, error) {
222222 statusCodeGet , convertStatusCode (statusCodeExpect ))
223223}
224224
225- // BackendBasicCheck check BackendCheck config.
225+ // BackendCheckCheck check BackendCheck config.
226226func BackendCheckCheck (conf * BackendCheck ) error {
227227 if conf .Schem == nil {
228228 // set default schem to http
@@ -337,7 +337,7 @@ func HashConfCheck(conf *HashConf) error {
337337 return nil
338338}
339339
340- // ClusterToConf check ClusterBasicConf.
340+ // ClusterBasicConfCheck check ClusterBasicConf.
341341func ClusterBasicConfCheck (conf * ClusterBasicConf ) error {
342342 if conf .TimeoutReadClientAgain == nil ||
343343 conf .TimeoutReadClient == nil ||
@@ -365,7 +365,7 @@ func ClusterBasicConfCheck(conf *ClusterBasicConf) error {
365365 return nil
366366}
367367
368- // ClusterBasicConfCheck check ClusterConf.
368+ // ClusterConfCheck check ClusterConf.
369369func ClusterConfCheck (conf * ClusterConf ) error {
370370 var err error
371371
0 commit comments