另客网go项目公用的代码库

session_debug.go 479B

12345678910111213141516171819202122232425
  1. package auth
  2. import (
  3. "time"
  4. )
  5. type DebugSessionStore struct{}
  6. func NewDebugSessionStore(address string, password string) *DebugSessionStore {
  7. return &DebugSessionStore{}
  8. }
  9. func (*DebugSessionStore) StoreJwtToken(key string, value string, timeout time.Duration) error {
  10. return nil
  11. }
  12. func (*DebugSessionStore) IsExistsJwtToken(key string) bool {
  13. return true
  14. }
  15. // DeleteJwtToken delete jwt token
  16. func (*DebugSessionStore) DeleteJwtToken(key string) bool {
  17. return true
  18. }