Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Store = sessions.NewCookieStore([]byte("abc!@#$%^&*1234567890"))
Functions ¶
func SetLoginCookie ¶
func SetLoginCookie(c *gin.Context, sessionValue *SessionValue)
Types ¶
type JWTFilter ¶
type JWTFilter struct {
// contains filtered or unexported fields
}
func NewJWTFilter ¶
func NewJWTFilter(opts ...JWTFilterOptions) *JWTFilter
func (*JWTFilter) GenerateToken ¶
func (*JWTFilter) ParseToken ¶
type JWTFilterOptions ¶
type JWTFilterOptions interface {
// contains filtered or unexported methods
}
func WithSecretKey ¶
func WithSecretKey(secretKey []byte) JWTFilterOptions
type SessionValue ¶
type SessionValue struct {
Id uint
}
Click to show internal directories.
Click to hide internal directories.