pic

package
v0.0.0-...-f6d29ee Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CameraID

type CameraID = v1.CameraID

type CameraService

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

CameraService provides the domains' use cases.

func NewCameraService

func NewCameraService(repo StillCameraRepository) *CameraService

func (*CameraService) CapturePhoto

func (s *CameraService) CapturePhoto(settings Settings) (Image, error)

func (*CameraService) ListCameras

func (s *CameraService) ListCameras() ([]StillCamera, error)

type ISO

type ISO = v1.ISO

type Image

type Image interface {
	Recycle()
	io.WriterTo
}

type Settings

type Settings = v1.Settings

type StillCamera

type StillCamera = v1.StillCamera

type StillCameraRepository

type StillCameraRepository interface {
	FindAllStillCameras() ([]StillCamera, error)
	CapturePhoto(settings Settings, dst []byte) ([]byte, error)
}

StillCameraRepository is part of the domain core. Must not be used by presentation layers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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