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

Method TopicCreateP2P

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

TopicCreateP2P creates a p2p topic

(initiator, invited *t.Subscription)

Source from the content-addressed store, hash-verified

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)
102 TopicGet(topic string) (*t.Topic, error)
103 // TopicsForUser loads subscriptions for a given user. Reads public value.

Callers 5

CreateP2PMethod · 0.65
TestTopicCreateP2PFunction · 0.65
TestTopicCreateP2PFunction · 0.65
TestTopicCreateP2PFunction · 0.65
TestTopicCreateP2PFunction · 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

TestTopicCreateP2PFunction · 0.52
TestTopicCreateP2PFunction · 0.52
TestTopicCreateP2PFunction · 0.52
TestTopicCreateP2PFunction · 0.52