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

Method Create

server/store/store.go:614–614  ·  view source on GitHub ↗
(subs ...*types.Subscription)

Source from the content-addressed store, hash-verified

612// SubsPersistenceInterface is an interface which defines methods for persistent storage of subscriptions.
613type SubsPersistenceInterface interface {
614 Create(subs ...*types.Subscription) error
615 Get(topic string, user types.Uid, keepDeleted bool) (*types.Subscription, error)
616 Update(topic string, user types.Uid, update map[string]any) error
617 Delete(topic string, user types.Uid) error

Callers 14

genDbFunction · 0.65
mainFunction · 0.65
initTopicP2PFunction · 0.65
initTopicNewGrpFunction · 0.65
initTopicSlfFunction · 0.65
TestDispatchAccNewFunction · 0.65
thisUserSubMethod · 0.65
anotherUserSubMethod · 0.65
replyCreateUserFunction · 0.65
mainFunction · 0.65
UploadMethod · 0.65
AuthenticateMethod · 0.65

Implementers 9

usersMapperserver/store/store.go
topicsMapperserver/store/store.go
subsMapperserver/store/store.go
MockUsersPersistenceInterfaceserver/store/mock_store/mock_store.go
MockUsersPersistenceInterfaceMockRecorderserver/store/mock_store/mock_store.go
MockTopicsPersistenceInterfaceserver/store/mock_store/mock_store.go
MockTopicsPersistenceInterfaceMockRecorderserver/store/mock_store/mock_store.go
MockSubsPersistenceInterfaceserver/store/mock_store/mock_store.go
MockSubsPersistenceInterfaceMockRecorderserver/store/mock_store/mock_store.go

Calls

no outgoing calls

Tested by 1

TestDispatchAccNewFunction · 0.52