Documentation
¶
Index ¶
Constants ¶
View Source
const CookieName = "HUB_SID"
CookieName is the session cookie name
View Source
const Duration = time.Hour * 24 * 6
Duration is the default session experation
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mockable ¶
type Mockable struct {
Provider *mockableprovider.Provider
}
Mockable is a Redis SessionProvider
type Provider ¶
type Provider interface { // Get a user UUID by token Get(token string) (string, error) // Set a session by token Set(token string, userUUI string) error }
Provider is the Session Provider
type RedisProvider ¶
RedisProvider is a Redis SessionProvider
func (*RedisProvider) AutoMigrate ¶
func (p *RedisProvider) AutoMigrate(clearExitstingData bool) error
AutoMigrate the data connection
Click to show internal directories.
Click to hide internal directories.