Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PhotoService ¶
type PhotoService struct {
// contains filtered or unexported fields
}
func New ¶
func New(r repository.PhotoRepository) PhotoService
func (*PhotoService) CloseDb ¶ added in v0.6.0
func (s *PhotoService) CloseDb()
func (*PhotoService) Index ¶
func (s *PhotoService) Index(ctx context.Context, path string)
Index tests if the number of images present in the database is different from the number present in the filesystem. If this is the case it launches a re-indexation otherwise it do nothing
func (*PhotoService) ReIndex ¶ added in v0.6.0
func (s *PhotoService) ReIndex(ctx context.Context, path string)
ReIndex scans the folder given in parameter and fill the database with image info and EXIF data found on JPEGs
func (*PhotoService) Watch ¶ added in v0.6.0
func (s *PhotoService) Watch(path string)
type RegisterCaller ¶
type RegisterService ¶
type RegisterService struct {
// contains filtered or unexported fields
}
func NewRegisterService ¶
func NewRegisterService(c RegisterCaller, param model.ServeParameters) RegisterService
func (*RegisterService) Register ¶
func (s *RegisterService) Register()
Click to show internal directories.
Click to hide internal directories.