grammar

package
v0.0.0-...-2a6829a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRoutes

func InitRoutes(dionysosHandler *DionysosHandler) *mux.Router

InitRoutes to start up a mux router and return the routes

func QueryRuleSet

func QueryRuleSet(es elastic.Client, index string) (*plato.DeclensionConfig, error)

Types

type DionysosHandler

type DionysosHandler struct {
	Elastic          aristoteles.Client
	Cache            archytas.Client
	Index            string
	Client           service.OdysseiaClient
	DeclensionConfig models.DeclensionConfig
	Tracer           *aristophanes.ClientTracer
	Aggregator       *aristarchos.ClientAggregator
}

func CreateNewConfig

func CreateNewConfig(env string) (*DionysosHandler, error)

func (*DionysosHandler) StartFindingRules

func (d *DionysosHandler) StartFindingRules(word, requestID string) (*models.DeclensionTranslationResults, error)

StartFindingRules initiates the process of finding declension rules and translations for a given word. It returns the declension translation results.

Jump to

Keyboard shortcuts

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