aboutsummaryrefslogtreecommitdiff
path: root/conn_pool.go
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-03 16:27:49 +0100
committerSimon Ser <contact@emersion.fr>2019-12-03 16:27:49 +0100
commit89cebfd8199d172058ff89cd8586ed12866139e0 (patch)
tree680ecca3e65eb824af3477eef4c84dacff3cff60 /conn_pool.go
parent702719c072dea73ed5ec046fa640b3151ebcbc55 (diff)
downloadalps-89cebfd8199d172058ff89cd8586ed12866139e0.tar.gz
alps-89cebfd8199d172058ff89cd8586ed12866139e0.zip
Add basic SMTP support
Diffstat (limited to 'conn_pool.go')
-rw-r--r--conn_pool.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/conn_pool.go b/conn_pool.go
index 6e244b0..1ccc879 100644
--- a/conn_pool.go
+++ b/conn_pool.go
@@ -21,14 +21,14 @@ func generateToken() (string, error) {
var ErrSessionExpired = errors.New("session expired")
type Session struct {
- imapConn *imapclient.Client
+ imapConn *imapclient.Client
username, password string
}
// TODO: expiration timer
type ConnPool struct {
- locker sync.Mutex
- sessions map[string]*Session
+ locker sync.Mutex
+ sessions map[string]*Session
}
func NewConnPool() *ConnPool {