domain

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomerService added in v0.1.31

type CustomerService interface {
	ListByNumber(ctx context.Context, q *query.ListByNumber) ([]model.Registration, error)
	ListByVIN(ctx context.Context, q *query.ListByVIN, v2 bool) ([]model.Registration, error)
	DetailsByCode(ctx context.Context, q *query.DetailsByCode) (*model.Registration, error)
	Health(ctx context.Context) error
}

type FullRegistrationStore

type FullRegistrationStore interface {
	SystemRegistrationStore
	RegistrationStore
}

type InternalService added in v0.1.31

type InternalService interface {
	ListByNumber(ctx context.Context, q *query.ListWithNumberByInternal) ([]model.Registration, error)
	ListByVIN(ctx context.Context, q *query.ListWithVINByInternal) ([]model.Registration, error)
	DetailsByCode(ctx context.Context, q *query.DetailsWithCodeByInternal) (*model.Registration, error)
}

type RegistrationProvider

type RegistrationProvider interface {
	FindByCode(ctx context.Context, code string) ([]model.Registration, error)
}

type RegistrationStore

type RegistrationStore interface {
	FindByCode(ctx context.Context, code string) (*model.Registration, error)
	FindByVIN(ctx context.Context, vin string) ([]model.Registration, error)
	FindByNumber(ctx context.Context, number string) ([]model.Registration, error)
	Health(ctx context.Context) error
}

type SystemRegistrationStore

type SystemRegistrationStore interface {
	Create(ctx context.Context, registration *model.Registration) error
	FindLastBySeries(ctx context.Context, series string) (*model.Registration, error)
	AllSeries(ctx context.Context) ([]string, error)
}

Directories

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

Jump to

Keyboard shortcuts

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