service

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

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 (*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 RegisterCaller interface {
	Register() (*model.RegisterResponse, error)
	HeartBeat(uuid.UUID) error
}

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()

Jump to

Keyboard shortcuts

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