application

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Camera

type Camera interface {
	Get() (domain.Snapshot, error)
}

type GetLatestSnapshotHandler

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

func NewGetLatestSnapshotHandler

func NewGetLatestSnapshotHandler(repo LatestSnapshotRepo) GetLatestSnapshotHandler

func (GetLatestSnapshotHandler) Execute

type LatestSnapshotRepo

type LatestSnapshotRepo interface {
	GetLatest() (domain.Snapshot, error)
}

type SnapshotsRepository

type SnapshotsRepository interface {
	Store(snapshot domain.Snapshot) error
}

type TakeSnapshotHandler

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

func NewTakeSnapshotHandler

func NewTakeSnapshotHandler(camera Camera, repository SnapshotsRepository) TakeSnapshotHandler

func (TakeSnapshotHandler) Handle

Jump to

Keyboard shortcuts

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