MCPcopy
hub / github.com/tinode/chat / ChannelsForUser

Method ChannelsForUser

server/db/adapter.go:117–117  ·  view source on GitHub ↗

ChannelsForUser loads a slice of topic names where the user is a channel reader and notifications (P) are enabled.

(uid t.Uid)

Source from the content-addressed store, hash-verified

115 OwnTopics(uid t.Uid) ([]string, error)
116 // ChannelsForUser loads a slice of topic names where the user is a channel reader and notifications (P) are enabled.
117 ChannelsForUser(uid t.Uid) ([]string, error)
118 // TopicShare creates topic subscriptions.
119 TopicShare(topic string, subs []*t.Subscription) error
120 // TopicDelete deletes topic, subscriptions, messages.

Callers 3

GetChannelsMethod · 0.65
TestChannelsForUserFunction · 0.65
TestChannelsForUserFunction · 0.65

Implementers 4

adapterserver/db/mongodb/adapter.go
adapterserver/db/postgres/adapter.go
adapterserver/db/rethinkdb/adapter.go
adapterserver/db/mysql/adapter.go

Calls

no outgoing calls

Tested by 2

TestChannelsForUserFunction · 0.52
TestChannelsForUserFunction · 0.52