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

Method TopicCreate

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

Topic management TopicCreate creates a topic

(topic *t.Topic)

Source from the content-addressed store, hash-verified

96
97 // TopicCreate creates a topic
98 TopicCreate(topic *t.Topic) error
99 // TopicCreateP2P creates a p2p topic
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)

Callers 5

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

TestTopicCreateFunction · 0.52
TestTopicCreateFunction · 0.52
TestTopicCreateFunction · 0.52
TestTopicCreateFunction · 0.52