Documentation ¶
Index ¶
- func GenerateSecret(length int) (string, error)
- type Security
- func (s *Security) CheckOTP(key string) bool
- func (s *Security) Decrypt(value string) (string, error)
- func (s *Security) DeleteSession(id string)
- func (s *Security) DeleteSessionByObject(session *sessions.Session) error
- func (s *Security) Encrypt(value string) (string, error)
- func (s *Security) GenerateOTP() (string, error)
- func (s *Security) GetSession(id string) (*Session, error)
- func (s *Security) GetSessionByObject(session *sessions.Session) (*Session, error)
- func (s *Security) IsEmailAuthorized(email string) (bool, error)
- func (s *Security) NewSession() (string, error)
- func (s *Security) WatchOTPs()
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSecret ¶
Types ¶
type Security ¶
type Security struct {
// contains filtered or unexported fields
}
func (*Security) DeleteSession ¶
func (*Security) DeleteSessionByObject ¶
func (*Security) GenerateOTP ¶
func (*Security) GetSessionByObject ¶
func (*Security) IsEmailAuthorized ¶
func (*Security) NewSession ¶
Click to show internal directories.
Click to hide internal directories.