adapters

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CameraMock

type CameraMock struct {
	Snapshots []domain.Snapshot
}

func (*CameraMock) Get

func (c *CameraMock) Get() (domain.Snapshot, error)

type JPEGCamera

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

func NewJPEGCamera

func NewJPEGCamera(client *http.Client, url string) (JPEGCamera, error)

func (JPEGCamera) Get

func (c JPEGCamera) Get() (domain.Snapshot, error)

type SnapshotsFileSystemRepository

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

func NewSnapshotsFileSystemRepository

func NewSnapshotsFileSystemRepository(rootDir string) (SnapshotsFileSystemRepository, error)

func (SnapshotsFileSystemRepository) GetLatest

func (SnapshotsFileSystemRepository) Store

func (r SnapshotsFileSystemRepository) Store(snapshot domain.Snapshot) (err error)

type SnapshotsInMemoryRepository

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

func (*SnapshotsInMemoryRepository) GetLatest

func (*SnapshotsInMemoryRepository) Store

func (r *SnapshotsInMemoryRepository) Store(snapshot domain.Snapshot) error

Jump to

Keyboard shortcuts

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