store

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 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 Recognition

type Recognition struct {
	ID        string    `db:"id"`
	ImageKey  string    `db:"image_key"`
	Plate     string    `db:"plate"`
	CreatedAt time.Time `db:"created_at"`
}

Recognition ...

func TestRecognition

func TestRecognition(t *testing.T) *Recognition

type RecognitionRepository

type RecognitionRepository interface {
	Create(ctx context.Context, recognition *Recognition) error
	FindByPlate(ctx context.Context, plate string) ([]Recognition, error)
}

type Store

type Store interface {
	Recognition() RecognitionRepository
}

Directories

Path Synopsis
Package mockstore is a generated GoMock package.
Package mockstore is a generated GoMock package.

Jump to

Keyboard shortcuts

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