imagerepo

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct{}

func New

func New() *Repo

func (*Repo) Get

func (re *Repo) Get(ctx context.Context, id uint64) (io.Reader, error)

Get implements imageapp.ImageRepo

func (*Repo) GetDescByID

func (re *Repo) GetDescByID(ctx context.Context, in uint64) (domain.Image, error)

GetDescByID implements imageapp.ImageRepo

func (*Repo) List

func (re *Repo) List(ctx context.Context) ([]domain.Image, error)

func (*Repo) Save

func (re *Repo) Save(ctx context.Context, img []byte, descr domain.FaceDescriptor) (domain.Image, error)

Save implements imageapp.ImageRepo

Jump to

Keyboard shortcuts

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