add members database adapters interface.

This commit is contained in:
Miroslav Šedivý
2020-12-06 00:21:09 +01:00
parent edb9fef097
commit 100544198b
5 changed files with 116 additions and 58 deletions

View File

@ -14,6 +14,13 @@ type MemberProfile struct {
CanAccessClipboard bool
}
type MembersDatabase interface {
Insert(id string, profile MemberProfile) error
Update(id string, profile MemberProfile) error
Delete(id string) error
Select() map[string]MemberProfile
}
type Session interface {
ID() string