summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-12-09 10:48:35 -0500
committerJoramWilander <jwawilander@gmail.com>2015-12-09 10:48:35 -0500
commit8e8b001609a22a0ac82c004e4499207c4b1a41f8 (patch)
treeb1a99928d14daf69735a3aa7e416ac946242db75 /store/store.go
parentb612c61ac164dd6a92896bc0892b6566edc298ce (diff)
downloadchat-8e8b001609a22a0ac82c004e4499207c4b1a41f8.tar.gz
chat-8e8b001609a22a0ac82c004e4499207c4b1a41f8.tar.bz2
chat-8e8b001609a22a0ac82c004e4499207c4b1a41f8.zip
Split db channel get into two functions using master and replica
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go
index 0695ea27f..682195148 100644
--- a/store/store.go
+++ b/store/store.go
@@ -60,6 +60,7 @@ type ChannelStore interface {
SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) StoreChannel
Update(channel *model.Channel) StoreChannel
Get(id string) StoreChannel
+ GetFromMaster(id string) StoreChannel
Delete(channelId string, time int64) StoreChannel
PermanentDeleteByTeam(teamId string) StoreChannel
GetByName(team_id string, domain string) StoreChannel