grammar

package
v0.0.0-...-39478f5 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 30 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
	Streamer         pb.TraceService_ChorusClient
	Aggregator       *aristarchos.ClientAggregator
	Cancel           context.CancelFunc
}

func CreateNewConfig

func CreateNewConfig(ctx context.Context) (*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