search

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package search provides search functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager is the search manager

func New

func New(opts Opts) (*Manager, error)

New creates a new search manager

func (*Manager) Contacts

func (s *Manager) Contacts(query string) ([]models.ContactResult, error)

Contacts searches contacts based on the query

func (*Manager) Conversations

func (s *Manager) Conversations(query string) ([]models.ConversationResult, error)

Conversations searches conversations based on the query

func (*Manager) Messages

func (s *Manager) Messages(query string) ([]models.MessageResult, error)

Messages searches messages based on the query

type Opts

type Opts struct {
	DB   *sqlx.DB
	Lo   *logf.Logger
	I18n *i18n.I18n
}

Opts contains the options for creating a new search manager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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