aboutsummaryrefslogtreecommitdiff
path: root/session.go
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-11 13:03:31 +0100
committerSimon Ser <contact@emersion.fr>2019-12-11 13:03:31 +0100
commite54a359acb7b308b75cb76ff8b3dba289903c3fb (patch)
tree900d246e32b318e8ab32dc6b488ed08d7cd1106a /session.go
parent28a8f3f6acc148b2dde213f2beb6e24c67338b5d (diff)
downloadalps-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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.go b/session.go
index 63ba997..e4e2eb0 100644
--- a/session.go
+++ b/session.go
@@ -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()