quintodrome/model/user_props.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
326 B
Go
Raw Normal View History

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)
}