incline

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const MorpherDefaultHost = "ws3.morpher.ru"

Variables

This section is empty.

Functions

This section is empty.

Types

type Inclinator

type Inclinator interface {
	InclineNouns(ctx context.Context, nouns []string) (map[string]*word.Word, error)
}

type Morpher

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

func NewMorpher

func NewMorpher(cfg MorphrerConfig) *Morpher

func NewMorpherDefault

func NewMorpherDefault() *Morpher

func (*Morpher) InclineNouns

func (m *Morpher) InclineNouns(ctx context.Context, nouns []string) (map[string]*word.Word, error)

type MorphrerConfig added in v0.2.0

type MorphrerConfig struct {
	Host  string `env:"HOST"`
	Token string `env:"TOKEN"`
}

type Persistent

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

func NewPersistent

func NewPersistent(inclinator Inclinator, store store.Store) *Persistent

func (*Persistent) InclineNouns

func (p *Persistent) InclineNouns(ctx context.Context, nouns []string) (map[string]*word.Word, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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