service

package
v0.0.0-...-d5e65dd Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: BSD-3-Clause Imports: 19 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 convert requests

Types

type Data

type Data struct {
	Port int

	Saver   FileSaver
	Worker  Transcriber
	Limiter *limiter.Count
	// contains filtered or unexported fields
}

Data is service operation data

type FileSaver

type FileSaver interface {
	Save(name string, reader io.Reader) (string, error)
}

FileSaver saves the file with the provided name

type Transcriber

type Transcriber interface {
	Convert(nameIn, instrument string) (string, error)
}

Encoder encodes file, returns file name

Jump to

Keyboard shortcuts

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