diff options
author | Simon Ser <contact@emersion.fr> | 2019-12-11 13:03:31 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-12-11 13:03:31 +0100 |
commit | e54a359acb7b308b75cb76ff8b3dba289903c3fb (patch) | |
tree | 900d246e32b318e8ab32dc6b488ed08d7cd1106a /session.go | |
parent | 28a8f3f6acc148b2dde213f2beb6e24c67338b5d (diff) | |
download | alps-e54a359acb7b308b75cb76ff8b3dba289903c3fb.tar.gz alps-e54a359acb7b308b75cb76ff8b3dba289903c3fb.zip |
Export Server.{Sessions,Plugins}
And unexport a few internal functions.
Diffstat (limited to 'session.go')
-rw-r--r-- | session.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,7 +45,7 @@ type Session struct { imapConn *imapclient.Client // protected by locker, can be nil } -func (s *Session) Ping() { +func (s *Session) ping() { s.pings <- struct{}{} } @@ -102,7 +102,7 @@ func (sm *SessionManager) connect(username, password string) (*imapclient.Client return c, nil } -func (sm *SessionManager) Get(token string) (*Session, error) { +func (sm *SessionManager) get(token string) (*Session, error) { sm.locker.Lock() defer sm.locker.Unlock() |