Pārlūkot izejas kodu

add debug session

Paul 6 gadus atpakaļ
vecāks
revīzija
54d10e7a4b
1 mainītis faili ar 24 papildinājumiem un 0 dzēšanām
  1. 24
    0
      middleware/auth/session_debug.go

+ 24
- 0
middleware/auth/session_debug.go Parādīt failu

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