providers

package
v0.0.0-...-db3c348 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerProvider

type ConsumerProvider interface {
	Consume(sendTo chan int)
}

ConsumerProvider interface which defines the minimum needed functionality for a consumer of an image queue.

type ImageStorer

type ImageStorer interface {
	GetImage(id int) (*models.Image, error)
	UpdateImage(id int, person int, status models.Status) error
	GetPersonFromImage(image string) (*models.Person, error)
}

ImageStorer handles storing and updating images for the image processor.

type ProcessorProvider

type ProcessorProvider interface {
	ProcessImages(ctx context.Context, in chan int)
}

Processor defines a set of functions which a processor needs. Todo: add errorGroups for error handling.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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