service

package
v2.0.0-...-222d759 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCsv

func GenerateCsv(documents []data.Document, filepath string)

Types

type ButlerService

type ButlerService struct {
	ButlerConfig data.ButlerConfig
	APIBase      string
	Logger       *zap.SugaredLogger
}

func NewButlerService

func NewButlerService(logger *zap.SugaredLogger) *ButlerService

func (*ButlerService) GetExtractionResults

func (butService *ButlerService) GetExtractionResults(uploadId string) (*data.ExtractionResult, error)

func (*ButlerService) ProcessRecipesInDir

func (butService *ButlerService) ProcessRecipesInDir(dir string) ([]data.Document, error)

func (*ButlerService) ProcessSingleImage

func (butService *ButlerService) ProcessSingleImage(filePath string) ([]data.Document, error)

Jump to

Keyboard shortcuts

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