service

package
v0.0.0-...-abc66c6 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartWebServer

func StartWebServer(data *Data) error

StartWebServer starts the HTTP service and listens for the requests

Types

type Data

type Data struct {
	Transcriber     Transcriber
	WordTranscriber WordTranscriber
	Port            int
}

Data is service operation data

type Transcriber

type Transcriber interface {
	Process(string, bool) ([]*api.ResultWord, error)
}

Transcriber returns words IPA transcriptiops array

type WordTranscriber

type WordTranscriber interface {
	Process(string, bool) (*api.WordInfo, error)
}

WordTranscriber returns possible transcription wariants for one word

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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