wrapservice

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthHandler added in v0.2.387

func NewHealthHandler(amURL, vocURL string) (http.Handler, error)

NewHealthHandler creates new health handler

func StartWebServer

func StartWebServer(data *Data) error

StartWebServer starts the HTTP service and listens for synthesize requests

Types

type Data

type Data struct {
	Port          int
	Processor     WaveSynthesizer
	HealthHandler http.Handler
}

Data is service operation data

type Processor

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

Processor does synthesis work

func NewProcessor

func NewProcessor(amURL, vocURL string) (*Processor, error)

NewProcessor creates new processor

func (*Processor) Work

func (p *Processor) Work(params *api.Params) (string, error)

Work is main method

type WaveSynthesizer

type WaveSynthesizer interface {
	Work(params *api.Params) (string, error)
}

WaveSynthesizer main sythesis processor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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