search

package
v0.0.0-...-b289748 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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
	Shared *shared.Shared
	UGen   *types.UidGenerator
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL