fix: move sessionstore -> memstore
This commit is contained in:
17
server/memorystore/providers/providers.go
Normal file
17
server/memorystore/providers/providers.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package providers
|
||||
|
||||
// Provider defines current memory store provider
|
||||
type Provider interface {
|
||||
// DeleteAllSessions deletes all the sessions from the session store
|
||||
DeleteAllUserSession(userId string) error
|
||||
// GetUserSessions returns all the user sessions from the session store
|
||||
GetUserSessions(userId string) map[string]string
|
||||
// ClearStore clears the session store for authorizer tokens
|
||||
ClearStore() error
|
||||
// SetState sets the login state (key, value form) in the session store
|
||||
SetState(key, state string) error
|
||||
// GetState returns the state from the session store
|
||||
GetState(key string) string
|
||||
// RemoveState removes the social login state from the session store
|
||||
RemoveState(key string) error
|
||||
}
|
Reference in New Issue
Block a user