MCPcopy Index your code
hub / github.com/tinode/chat / TopicShare

Method TopicShare

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

TopicShare creates topic subscriptions.

(topic string, subs []*t.Subscription)

Source from the content-addressed store, hash-verified

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.
121 TopicDelete(topic string, isChan, hard bool) error
122 // TopicUpdateOnMessage increments Topic's or User's SeqId value and updates TouchedAt timestamp.

Callers 5

CreateMethod · 0.65
TestTopicShareFunction · 0.65
TestTopicShareFunction · 0.65
TestTopicShareFunction · 0.65
TestTopicShareFunction · 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

TestTopicShareFunction · 0.52
TestTopicShareFunction · 0.52
TestTopicShareFunction · 0.52
TestTopicShareFunction · 0.52