Documentation ¶
Index ¶
- func InitSessionService(sc *Config) error
- func SetSessionService(newSs *Service)
- type Config
- type DataStore
- type JWT
- type Jwt
- type Service
- func (ss *Service) ConvertSessionToJwt(sessID string) (string, error)
- func (ss *Service) CreateSession(session Session) (Session, error)
- func (ss *Service) CreateUserSession(userID string) (sessID string, err error)
- func (ss *Service) DeleteSession(id string) error
- func (ss *Service) GetJwtPublicKey() *rsa.PublicKey
- func (ss *Service) GetSession(id string) (Session, error)
- func (ss *Service) GetSessionData(sessionID string) (sess map[string]interface{}, err error)
- func (ss *Service) UpdateSession(session Session) error
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitSessionService ¶
func SetSessionService ¶
func SetSessionService(newSs *Service)
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func GetSessionService ¶
func GetSessionService() *Service
func (*Service) ConvertSessionToJwt ¶
func (*Service) CreateUserSession ¶
func (*Service) DeleteSession ¶
func (*Service) GetJwtPublicKey ¶
func (*Service) GetSessionData ¶
func (*Service) UpdateSession ¶
Click to show internal directories.
Click to hide internal directories.