Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents a StorageService internally
func NewSessionService ¶
func NewSessionService(timeout time.Duration, store api.StorageService, log api.LogService) *Service
NewSessionService returns a SessionService
func (Service) GetAccountIfSessionIsValid ¶
GetAccountIfSessionIsValid returns an Account if the session key is valid and an error otherwise
func (Service) UserDidAuthenticate ¶
UserDidAuthenticate returns a session key and an error if applicable
func (Service) UserDidLogout ¶
UserDidLogout attempts to end the session and returns an error on failure
Click to show internal directories.
Click to hide internal directories.