blob: 1f9f04cff4e764b2b79a2a8e2d1c91872bbce1a2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package worker
import (
"git.sr.ht/~sircmpwn/aerc2/worker/imap"
"git.sr.ht/~sircmpwn/aerc2/worker/types"
)
type Worker interface {
GetMessage() types.WorkerMessage
PostAction(types.WorkerMessage)
Run()
}
// Guesses the appropriate worker type based on the given source string
func NewWorker(source string) Worker {
// TODO: Do this properly
return imap.NewIMAPWorker()
}
|