ソースを参照

add debug session

Paul 6 年 前
コミット
54d10e7a4b
共有1 個のファイルを変更した24 個の追加0 個の削除を含む
  1. 24
    0
      middleware/auth/session_debug.go

+ 24
- 0
middleware/auth/session_debug.go ファイルの表示

@@ -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
+}