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

Method UsersForTopic

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

UsersForTopic loads users' subscriptions for a given topic. Public is loaded.

(topic string, keepDeleted bool, opts *t.QueryOpt)

Source from the content-addressed store, hash-verified

111 TopicsForUser(uid t.Uid, keepDeleted bool, opts *t.QueryOpt) ([]t.Subscription, error)
112 // UsersForTopic loads users' subscriptions for a given topic. Public is loaded.
113 UsersForTopic(topic string, keepDeleted bool, opts *t.QueryOpt) ([]t.Subscription, error)
114 // OwnTopics loads a slice of topic names where the user is the owner.
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.

Callers 6

GetUsersMethod · 0.65
GetUsersAnyMethod · 0.65
TestUsersForTopicFunction · 0.65
TestUsersForTopicFunction · 0.65
TestUsersForTopicFunction · 0.65
TestUsersForTopicFunction · 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 4

TestUsersForTopicFunction · 0.52
TestUsersForTopicFunction · 0.52
TestUsersForTopicFunction · 0.52
TestUsersForTopicFunction · 0.52