summaryrefslogtreecommitdiffstats
path: root/server/storage.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/storage.go')
-rw-r--r--server/storage.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/storage.go b/server/storage.go
index 99402c8..bffb783 100644
--- a/server/storage.go
+++ b/server/storage.go
@@ -8,8 +8,8 @@ import (
type Storage interface {
AddMessage(msg core.Message) (err error)
- GetHistory(target string, since time.Time, num, offset int) (history []core.Message, err error)
- GetHistoryUser(user1, user2 string, since time.Time, num, offset int) (history []core.Message, err error)
+ GetHistory(target string, since time.Time, count, offset int) (history []core.Message, err error)
+ GetHistoryUser(user1, user2 string, since time.Time, count, offset int) (history []core.Message, err error)
SetUser(user core.UserData) error
DelUser(name string) error
@@ -17,5 +17,7 @@ type Storage interface {
SetPermission(data core.PermissionData) error
GetPermission(user, channel string) (core.PermissionData, error)
+
GetChannelUsers(channel string) ([]string, error)
+ GetUserChannels(user string, count, offset int) ([]string, error)
}