瀏覽代碼

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