domain

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 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 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 UserOperationService

type UserOperationService 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 WriteOperationRepository

type WriteOperationRepository interface {
	Create(ctx context.Context, operations ...*model.Operation) error
	DeleteByResourceID(ctx context.Context, id int64) (int64, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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