image

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader interface {
	List() ([]*entity.Image, error)
}

type Repository

type Repository interface {
	Reader
	Writer
}

type Service

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

func NewService

func NewService(r Repository) *Service

NewService returns the image service.

func (*Service) Create

func (s *Service) Create(path string) error

func (*Service) GetDistances

func (s *Service) GetDistances(path string) ([]*entity.Image, error)

func (*Service) List

func (s *Service) List() ([]*entity.Image, error)

type Usecase

type Usecase interface {
	Create(path string) error
	List() ([]*entity.Image, error)
	GetDistances(path string) ([]*entity.Image, error)
}

type Writer

type Writer interface {
	Create(e *entity.Image) error
}

Jump to

Keyboard shortcuts

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