From e54a359acb7b308b75cb76ff8b3dba289903c3fb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 11 Dec 2019 13:03:31 +0100 Subject: Export Server.{Sessions,Plugins} And unexport a few internal functions. --- session.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'session.go') 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() -- cgit v1.2.3-59-g8ed1b