service

package
v0.0.0-...-ab66c9d Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: BSD-3-Clause Imports: 18 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
	Extractor Extractor
	// contains filtered or unexported fields
}

Data is service operation data

type Extractor

type Extractor interface {
	Extract(nameIn string, nameOut string) error
}

Extractor extracts text

type FileSaver

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

FileSaver saves the file with the provided name

Jump to

Keyboard shortcuts

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