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

Method Find

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

Search Find searches for users or topics given a list of tags. - caller is the user or topic who is doing the searching, it will be skipped from results. - prefix if present will cause match rank highest in the results. - req is a list of required tag sets. Each set is a list of tags. The search wil

(caller, prefix string, req [][]string, opt []string, activeOnly bool)

Source from the content-addressed store, hash-verified

152 // - opt is a list of optional tags; if present the result will rank higher.
153 // - activeOnly if true will return only active subscriptions.
154 Find(caller, prefix string, req [][]string, opt []string, activeOnly bool) ([]t.Subscription, error)
155 // FindOne returns topic or user which matches the given tag.
156 FindOne(tag string) (string, error)
157

Callers 15

pluginFindFunction · 0.65
FindSubsMethod · 0.65
UserGetAllMethod · 0.65
CredGetAllMethod · 0.65
TopicsForUserMethod · 0.65
UsersForTopicMethod · 0.65
topicNamesForUserMethod · 0.65
SubsForUserMethod · 0.65
SubsForTopicMethod · 0.65
subsDeleteMethod · 0.65
MessageGetAllMethod · 0.65
MessageGetDeletedMethod · 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 7

TestFindFunction · 0.52
TestCredDelFunction · 0.52
TestMessageDeleteListFunction · 0.52
TestTopicDeleteFunction · 0.52
TestFindFunction · 0.52
TestFindFunction · 0.52
TestFindFunction · 0.52