search

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Abbreviations = map[string]string{}/* 417 elements not displayed */

Functions

func TranslationHasLocal

func TranslationHasLocal(translation string) (bool, error)

Types

type Local

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

func NewLocal

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

func (*Local) Booklist

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

func (*Local) Close

func (l *Local) Close() error

func (*Local) Query

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

func (*Local) Translation

func (l *Local) Translation() string

type Remote

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

func NewRemote

func NewRemote(translation string) *Remote

func (*Remote) Booklist

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

func (*Remote) Query

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

func (*Remote) Translation

func (r *Remote) Translation() string

type Searcher

type Searcher interface {
	Query(query string) ([]model.Verse, []model.Footnote, 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