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

Method TopicGet

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

TopicGet loads a single topic by name, if it exists. If the topic does not exist the call returns (nil, nil)

(topic string)

Source from the content-addressed store, hash-verified

100 TopicCreateP2P(initiator, invited *t.Subscription) error
101 // TopicGet loads a single topic by name, if it exists. If the topic does not exist the call returns (nil, nil)
102 TopicGet(topic string) (*t.Topic, error)
103 // TopicsForUser loads subscriptions for a given user. Reads public value.
104 // When the 'opts.IfModifiedSince' query is not nil the subscriptions with UpdatedAt > opts.IfModifiedSince
105 // are returned, where UpdatedAt can be either a subscription, a topic, or a user update timestamp.

Callers 5

GetMethod · 0.65
TestTopicGetFunction · 0.65
TestTopicGetFunction · 0.65
TestTopicGetFunction · 0.65
TestTopicGetFunction · 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

TestTopicGetFunction · 0.52
TestTopicGetFunction · 0.52
TestTopicGetFunction · 0.52
TestTopicGetFunction · 0.52