src.dualinventive.com/go/cp3000-interface/internal/storage/repository.go

13 lines
347 B
Go

package storage
import "errors"
// ErrNotFound is raised when the IMEI is not found in the repository
var ErrNotFound = errors.New("not found")
// Repository contains functions that can interact with a storage
type Repository interface {
GetDeviceByIMEI(imei string) (*Device, error)
GetDeviceByDeviceUID(deviceUID string) (*Device, error)
}