@@ -134,33 +134,33 @@ type TopologyClosedEvent struct {
134
134
// ServerHeartbeatStartedEvent is an event generated when the heartbeat is started.
135
135
type ServerHeartbeatStartedEvent struct {
136
136
ConnectionID string // The address this heartbeat was sent to with a unique identifier
137
- Awaited bool // If this heartbeat was awaitable
137
+ Awaited bool // If this heartbeat was awaitable
138
138
}
139
139
140
140
// ServerHeartbeatSucceededEvent is an event generated when the heartbeat succeeds.
141
141
type ServerHeartbeatSucceededEvent struct {
142
142
DurationNanos int64
143
143
Reply description.Server
144
144
ConnectionID string // The address this heartbeat was sent to with a unique identifier
145
- Awaited bool // If this heartbeat was awaitable
145
+ Awaited bool // If this heartbeat was awaitable
146
146
}
147
147
148
148
// ServerHeartbeatFailedEvent is an event generated when the heartbeat fails.
149
149
type ServerHeartbeatFailedEvent struct {
150
150
DurationNanos int64
151
151
Failure error
152
152
ConnectionID string // The address this heartbeat was sent to with a unique identifier
153
- Awaited bool // If this heartbeat was awaitable
153
+ Awaited bool // If this heartbeat was awaitable
154
154
}
155
155
156
156
// ServerMonitor represents a monitor that is triggered for different server events. The client
157
157
// will monitor changes on the MongoDB deployment it is connected to, and this monitor reports
158
158
// the changes in the client's representation of the deployment. The topology represents the
159
159
// overall deployment, and heartbeats are sent to individual servers to check their current status.
160
160
type ServerMonitor struct {
161
- ServerDescriptionChanged func (* ServerDescriptionChangedEvent )
162
- ServerOpening func (* ServerOpeningEvent )
163
- ServerClosed func (* ServerClosedEvent )
161
+ ServerDescriptionChanged func (* ServerDescriptionChangedEvent )
162
+ ServerOpening func (* ServerOpeningEvent )
163
+ ServerClosed func (* ServerClosedEvent )
164
164
// TopologyDescriptionChanged is called when the topology is locked, so the callback should
165
165
// not attempt any operation that requires server selection on the same client.
166
166
TopologyDescriptionChanged func (* TopologyDescriptionChangedEvent )
0 commit comments