ImportProgress provides callbacks for import progress reporting.
| 139 | |
| 140 | // ImportProgress provides callbacks for import progress reporting. |
| 141 | type ImportProgress interface { |
| 142 | OnStart() |
| 143 | OnChatStart(chatJID string, chatTitle string, messageCount int) |
| 144 | OnProgress(processed, added, skipped int64) |
| 145 | OnChatComplete(chatJID string, messagesAdded int64) |
| 146 | OnComplete(summary *ImportSummary) |
| 147 | OnError(err error) |
| 148 | } |
| 149 | |
| 150 | // NullProgress is a no-op implementation of ImportProgress. |
| 151 | type NullProgress struct{} |