Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SessionManager ¶
SessionManager manages TLSNotary sessions from multiple users. When a user sends a request, SessionManager extracts the unique id of the user from the request, and calls the matching session.
func (*SessionManager) AddSession ¶
func (sm *SessionManager) AddSession(key string) *session.Session
addSession creates a new session and sets its creation time
func (*SessionManager) GetMethod ¶
func (sm *SessionManager) GetMethod(methodStr string, key string) method
GetMethod looks up and return Session's method corresponding to the method string
func (*SessionManager) GetSession ¶
func (sm *SessionManager) GetSession(key string) *session.Session
get an already-existing session associated with the key and update the last-seen time
func (*SessionManager) Init ¶
func (sm *SessionManager) Init()
Click to show internal directories.
Click to hide internal directories.