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 ¶
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 pba.Aristarchos_CreateNewEntryClient StreamerCancel context.CancelFunc AggregatorCancel context.CancelFunc AggregatorClient *aristarchos.ClientAggregator }
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.
Click to show internal directories.
Click to hide internal directories.