ElapsedRowCopyTime returns time since starting to copy chunks of rows
()
| 132 | |
| 133 | // ElapsedRowCopyTime returns time since starting to copy chunks of rows |
| 134 | func (m *MySQLDriverConfig) ElapsedRowCopyTime() time.Duration { |
| 135 | if m.RowCopyStartTime.IsZero() { |
| 136 | // Row copy hasn't started yet |
| 137 | return 0 |
| 138 | } |
| 139 | |
| 140 | if m.RowCopyEndTime.IsZero() { |
| 141 | return time.Since(m.RowCopyStartTime) |
| 142 | } |
| 143 | return m.RowCopyEndTime.Sub(m.RowCopyStartTime) |
| 144 | } |
| 145 | |
| 146 | type KafkaConfig struct { |
| 147 | Brokers []string |