MCPcopy Create free account
hub / github.com/daodst/chat / Create

Method Create

server/store/store.go:328–333  ·  view source on GitHub ↗
(appid uint32, sub *types.Subscription)

Source from the content-addressed store, hash-verified

326var Subs SubsObjMapper
327
328func (SubsObjMapper) Create(appid uint32, sub *types.Subscription) error {
329 sub.InitTimes()
330
331 _, err := adaptr.TopicShare(appid, []types.Subscription{*sub})
332 return err
333}
334
335func (SubsObjMapper) Get(appid uint32, topic string, user types.Uid) (*types.Subscription, error) {
336 return adaptr.SubscriptionGet(appid, topic, user)

Callers 2

CreateMethod · 0.45
CreateMethod · 0.45

Calls 1

TopicShareMethod · 0.65

Tested by

no test coverage detected