Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRedisService ¶
func InitRedisService(c *RedisConfig)
InitRedisService initializes the redis session service
Types ¶
type RedisConfig ¶
type RedisConfig struct {
Secure bool
}
RedisConfig is the redis session configuration
type Service ¶
type Service interface { Login(r *http.Request, w http.ResponseWriter, u *User) error Logout(r *http.Request, w http.ResponseWriter) error GetUser(r *http.Request) (*User, error) }
Service is an authentication service interface
Click to show internal directories.
Click to hide internal directories.