search

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package search implements search functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Search struct {
	ORM    *gorm.DB  `validate:"required"`
	Writer io.Writer `validate:"required"`
}

Search search for templates

func (*Search) Search

func (s *Search) Search(term string) <-chan *entry.Entry

Search searches database for term and returns the results through *Entry channel.

func (*Search) Search2Output

func (s *Search) Search2Output(long bool, term string) int

Search2Output searches database for term and sends the results to the formatter.Format function supplied in New. Blocks until all entries are processed.

type SearchIface

type SearchIface interface {
	// Search searches database for term and returns the results through *Entry channel.
	Search(term string) <-chan *entry.Entry
	// Search2Output searches database for term and sends the results to the formatter.Format function supplied in New.
	// Blocks until all entries are processed.
	Search2Output(long bool, term string) int
}

SearchIface ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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