multidict

package
v0.0.0-...-58581c8 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LemmaDict

type LemmaDict interface {
	Query(ctx context.Context, query string) ([]*lemma.Lemma, error)
}

type MultiDict

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

MultiDict

func New

func New(opts *Options) (*MultiDict, error)

func (*MultiDict) Close

func (m *MultiDict) Close()

func (*MultiDict) Init

func (m *MultiDict) Init()

func (*MultiDict) Query

func (m *MultiDict) Query(ctx context.Context, query string) ([]*lemma.Lemma, error)

func (*MultiDict) QueryPitch

func (m *MultiDict) QueryPitch(ctx context.Context, slug string, hiragana string) ([]lemma.PitchShape, error)

type Options

type Options struct {
	Workers int

	LemmaDict LemmaDict
	PitchDict PitchDict
}

type PitchDict

type PitchDict interface {
	Query(ctx context.Context, query string) ([]*lemma.PitchedLemma, error)
}

Jump to

Keyboard shortcuts

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