domain

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 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 CustomerService added in v0.0.31

type CustomerService interface {
	ListByNumber(context.Context, *query.ListByNumber) ([]model.Operation, error)
	ListByVIN(context.Context, *query.ListByVIN) ([]model.Operation, error)
}

type InternalService added in v0.0.31

type InternalService interface {
	ListByNumber(context.Context, *query.ListWithNumberByInternal) ([]model.Operation, error)
	ListByVIN(context.Context, *query.ListWithVINByInternal) ([]model.Operation, error)
}

type OperationRepository

type OperationRepository interface {
	ReadOperationRepository
	WriteOperationRepository
}

type Parser

type Parser interface {
	Parse(ctx context.Context, resource *model.Resource, rc io.ReadCloser) error
}

type ReadOperationRepository

type ReadOperationRepository interface {
	FindByNumber(ctx context.Context, number string, limit uint64, order string) ([]model.Operation, error)
	FindByVIN(ctx context.Context, vin string, limit uint64, order string) ([]model.Operation, error)
}

type ResourceRepository

type ResourceRepository interface {
	Create(ctx context.Context, resource *model.Resource) error
	Update(rctx context.Context, esource *model.Resource) error
	FindByUID(ctx context.Context, uid string) (*model.Resource, error)
	All(ctx context.Context) ([]model.Resource, error)
}

type Store

type Store interface {
	Resource() ResourceRepository
	Operation() OperationRepository
}

type WriteOperationRepository

type WriteOperationRepository interface {
	Create(ctx context.Context, operations ...*model.Operation) error
	DeleteByResourceID(ctx context.Context, id int64) (int64, 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