search

package
v1.1.1-0...-acba925 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 6 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 {
	DB     *sql.DB
	Format formatter.Format
	Writer io.Writer
}

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(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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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