Ver código fonte

session interface

Paul 6 anos atrás
pai
commit
322d346fad
1 arquivos alterados com 1 adições e 3 exclusões
  1. 1
    3
      middleware/auth/session.go

+ 1
- 3
middleware/auth/session.go Ver arquivo

1
 package auth
1
 package auth
2
 
2
 
3
-import "time"
4
-
5
 type Session interface {
3
 type Session interface {
6
 	// StoreJwtToken store jwt token is redis, make it expired for feature
4
 	// StoreJwtToken store jwt token is redis, make it expired for feature
7
-	StoreJwtToken(key string, value string, timeout time.Duration) error
5
+	StoreJwtToken(key string, value string, timeout int64) error
8
 
6
 
9
 	// IsExistsJwtToken judge whether token is invalid
7
 	// IsExistsJwtToken judge whether token is invalid
10
 	IsExistsJwtToken(key string) bool
8
 	IsExistsJwtToken(key string) bool