Documentation ¶ Index ¶ type Reader type Repository type Service func NewService(r Repository) *Service func (s *Service) Create(path string) error func (s *Service) GetDistances(path string) ([]*entity.Image, error) func (s *Service) List() ([]*entity.Image, error) type Usecase type Writer 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 } Source Files ¶ View all Source files interface.go service.go Click to show internal directories. Click to hide internal directories.