Move user properties (like session keys) to their own table
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package model
|
||||
|
||||
// UserPropsRepository is meant to be scoped for the user, that can be obtained from request.UserFrom(r.Context())
|
||||
type UserPropsRepository interface {
|
||||
Put(key string, value string) error
|
||||
Get(key string) (string, error)
|
||||
Delete(key string) error
|
||||
DefaultGet(key string, defaultValue string) (string, error)
|
||||
}
|
||||
Reference in New Issue
Block a user