imageapp

package
v0.0.0-...-1920916 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(repo ImageRepo, faceService FaceService) *App

func (*App) Save

func (a *App) Save(ctx context.Context, r io.Reader) (domain.Image, error)

type FaceService

type FaceService interface {
	GetFaceDescriptor(img []byte) (domain.FaceDescriptor, error)
	SearchImageID(descr domain.FaceDescriptor, images []domain.Image) (uint64, error)
}

type ImageRepo

type ImageRepo interface {
	Save(ctx context.Context, img []byte, descr domain.FaceDescriptor) (domain.Image, error)
	Get(ctx context.Context, id uint64) (io.Reader, error)
	GetDescByID(ctx context.Context, in uint64) (domain.Image, error)
}

Jump to

Keyboard shortcuts

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