Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session is entity for current user session.
func (Session) GetCurrentUser ¶
GetCurrentUser returns current user.
func (Session) GetUserOrgs ¶
func (s Session) GetUserOrgs() []entity.Organization
GetUserOrgs returns orgs of current user.
func (*Session) SetCurrentUser ¶
SetCurrentUser sets current user.
func (*Session) SetUserOrgs ¶
func (s *Session) SetUserOrgs(newOrgs []entity.Organization)
SetUserOrgs sets orgs of current user.
type SessionService ¶
type SessionService struct {
// contains filtered or unexported fields
}
SessionService service which caches most static data.
func GetSessionService ¶
func GetSessionService() *SessionService
GetSessionService returns current session service.
func (*SessionService) CloseSession ¶
func (s *SessionService) CloseSession()
CloseSession closes current session.
func (SessionService) GetSession ¶
func (s SessionService) GetSession() Session
GetSession return a copy of current session.
func (*SessionService) StartSession ¶
func (s *SessionService) StartSession(token string)
StartSession starts new session.
func (*SessionService) UpdateSession ¶
func (s *SessionService) UpdateSession(session Session)
UpdateSession TODO.
Click to show internal directories.
Click to hide internal directories.