mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add members database adapters interface.
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user