searcher

package
v0.0.0-...-4d6605a Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

func IsTimeout

func IsTimeout(err error) bool

Types

type Config

type Config struct {
	Logger     logger.Interface
	Permission permission.Gateway
	Redigo     redigo.Interface
	Rescue     rescue.Interface
}

type Searcher

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

func New

func New(config Config) (*Searcher, error)

func (*Searcher) Search

func (s *Searcher) Search(req *timeline.SearchI) (*timeline.SearchO, error)

func (*Searcher) Verify

func (s *Searcher) Verify(ctx context.Context, req *timeline.SearchI) (bool, error)

Jump to

Keyboard shortcuts

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