Skip to content

Commit 012bdcf

Browse files
committed
notifications
1 parent f2e244a commit 012bdcf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

connnotf.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ import "net/url"
55
type ConnectionNotificationType int64
66

77
const (
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

4342
type 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

5352
type 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

6362
type 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

7372
type ConnectionNotificationAttemptFailed struct {
7473
Broker *url.URL

0 commit comments

Comments
 (0)