Move user properties (like session keys) to their own table

This commit is contained in:
Deluan
2021-06-23 16:47:32 -04:00
parent 265f33ed9d
commit 5001518260
12 changed files with 248 additions and 46 deletions
+9
View File
@@ -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)
}