search

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslationHasLocal added in v0.0.9

func TranslationHasLocal(translation string) (bool, error)

Types

type Local added in v0.0.9

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

func NewLocal added in v0.0.9

func NewLocal(translation string) (*Local, error)

func (*Local) Booklist added in v0.0.9

func (l *Local) Booklist() ([]model.Book, error)

func (*Local) Close added in v0.0.9

func (l *Local) Close() error

func (*Local) Query added in v0.0.9

func (l *Local) Query(query string) ([]model.Verse, error)

func (*Local) Translation added in v0.2.0

func (l *Local) Translation() string

type Remote added in v0.0.9

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

func NewRemote added in v0.0.9

func NewRemote(translation string) *Remote

func (*Remote) Booklist added in v0.0.9

func (r *Remote) Booklist() ([]model.Book, error)

func (*Remote) Query added in v0.0.9

func (r *Remote) Query(query string) ([]model.Verse, error)

func (*Remote) Translation added in v0.2.0

func (r *Remote) Translation() string

type Searcher added in v0.0.9

type Searcher interface {
	Query(query string) ([]model.Verse, error)
	Booklist() ([]model.Book, error)
	Translation() string
}

Jump to

Keyboard shortcuts

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