result

package
v0.0.0-...-4c7982d Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute starts the server

func NewRouter

func NewRouter(data *ServiceData) *mux.Router

NewRouter creates the router for HTTP service

func StartWebServer

func StartWebServer(data *ServiceData) error

StartWebServer starts the HTTP service and listens for the requests

Types

type FileLoader

type FileLoader interface {
	Load(name string) (api.File, error)
}

FileLoader loads file by the name

type FileNameProvider

type FileNameProvider interface {
	Get(ID string) (string, error)
}

FileNameProvider provider audio file name by ID

type FileResult

type FileResult struct {
	ID string `json:"id"`
}

FileResult - post method response in JSON

type ServiceData

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

ServiceData keeps data required for service work

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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