Messenger is the interface that implements only the message fetching.
| 44 | |
| 45 | // Messenger is the interface that implements only the message fetching. |
| 46 | type Messenger interface { |
| 47 | // Messages method is called for each message that is retrieved. |
| 48 | Messages(ctx context.Context, channelID string, numThreads int, isLast bool, messages []slack.Message) error |
| 49 | // ThreadMessages method is called for each of the thread messages that are |
| 50 | // retrieved. The parent message is passed in as well. |
| 51 | ThreadMessages(ctx context.Context, channelID string, parent slack.Message, threadOnly, isLast bool, replies []slack.Message) error |
| 52 | } |
| 53 | |
| 54 | type Filer interface { |
| 55 | // Files method is called for each file that is retrieved. The parent message is |
no outgoing calls
no test coverage detected