wrapservice

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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) (*api.Result, error)

Work is main method

type WaveSynthesizer

type WaveSynthesizer interface {
	Work(params *api.Params) (*api.Result, 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