Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Search ¶
type Search struct {
// contains filtered or unexported fields
}
func NewSearch ¶
func NewSearch(sa SearchArgs) *Search
func (*Search) FindTopics ¶
func (s *Search) FindTopics(req [][]string, opt []string, activeOnly bool) ([]types.Subscription, error)
Returns a list of topics with matching tags.
Searching the 'topics.Tags' for the given tags using respective index.
func (*Search) FindUsers ¶
func (s *Search) FindUsers(user types.Uid, req [][]string, opt []string, activeOnly bool) ([]types.Subscription, error)
FindUsers searches for new contacts given a list of tags.
Returns a list of users who match given tags, such as "email:jdoe@example.com" or "tel:+18003287448".
type SearchArgs ¶
type SearchArgs struct { DB *pgxpool.Pool Utils *utils.Utils Cfg *config.StorePostgresConfig UGen *types.UidGenerator }
Click to show internal directories.
Click to hide internal directories.