order

package
v0.0.0-...-01a878b Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers interface {
	Create() echo.HandlerFunc
	Update() echo.HandlerFunc
	GetByID() echo.HandlerFunc
	Delete() echo.HandlerFunc
}

type RedisRepository

type RedisRepository interface {
	GetOrderByIDCtx(ctx context.Context, key string) (*models.Order, error)
	SetOrderCtx(ctx context.Context, key string, seconds int, news *models.Order) error
	DeleteOrderCtx(ctx context.Context, key string) error
	GetOrderKeysCtx(ctx context.Context) ([]string, error)
}

type Scheduler

type Scheduler interface {
	MapCron(*gocron.Scheduler)
}

type UseCase

type UseCase interface {
	Create(ctx context.Context, order *models.Order) (*models.Order, error)
	Update(ctx context.Context, order *models.Order) (*models.Order, error)
	GetOrderByID(ctx context.Context, orderID uuid.UUID) (*models.Order, error)
	Delete(ctx context.Context, orderID uuid.UUID) error
}

Product use case

Directories

Path Synopsis
delivery
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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