@@ -5,8 +5,7 @@ import "net/url"
55type ConnectionNotificationType int64
66
77const (
8- ConnectionNotificationTypeUndefined ConnectionNotificationType = iota
9- ConnectionNotificationTypeConnected
8+ ConnectionNotificationTypeConnected ConnectionNotificationType = iota
109 ConnectionNotificationTypeConnecting
1110 ConnectionNotificationTypeFailed
1211 ConnectionNotificationTypeLost
@@ -38,7 +37,7 @@ func (n ConnectionNotificationConnecting) Type() ConnectionNotificationType {
3837 return ConnectionNotificationTypeConnecting
3938}
4039
41- // ConnectionFailed
40+ // Connection Failed
4241
4342type ConnectionNotificationFailed struct {
4443 Reason error
@@ -48,7 +47,7 @@ func (n ConnectionNotificationFailed) Type() ConnectionNotificationType {
4847 return ConnectionNotificationTypeFailed
4948}
5049
51- // ConnectionLost
50+ // Connection Lost
5251
5352type ConnectionNotificationLost struct {
5453 Reason error // may be nil
@@ -58,7 +57,7 @@ func (n ConnectionNotificationLost) Type() ConnectionNotificationType {
5857 return ConnectionNotificationTypeLost
5958}
6059
61- // ConnectionAttempt
60+ // Connection Attempt
6261
6362type ConnectionNotificationAttempt struct {
6463 Broker * url.URL
@@ -68,7 +67,7 @@ func (n ConnectionNotificationAttempt) Type() ConnectionNotificationType {
6867 return ConnectionNotificationTypeAttempt
6968}
7069
71- // ConnectionAttemptFailed
70+ // Connection Attempt Failed
7271
7372type ConnectionNotificationAttemptFailed struct {
7473 Broker * url.URL
0 commit comments