adapter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddProductRequest

type AddProductRequest struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Description string  `json:"description"`
	Price       float64 `json:"price"`
}

type AddProductResponse

type AddProductResponse struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Description string  `json:"description"`
	Price       float64 `json:"price"`
	CreatedAt   string  `json:"created_at"`
	UpdatedAt   string  `json:"updated_at"`
}

type GetAllProductsResponse

type GetAllProductsResponse struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Description string  `json:"description"`
	Price       float64 `json:"price"`
	CreatedAt   string  `json:"created_at"`
	UpdatedAt   string  `json:"updated_at"`
}

type GetProductUseCaseResponse

type GetProductUseCaseResponse struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Description string  `json:"description"`
	Price       float64 `json:"price"`
	CreatedAt   string  `json:"created_at"`
	UpdatedAt   string  `json:"updated_at"`
}

type LambdaAddProductAdapter

type LambdaAddProductAdapter struct {
	// contains filtered or unexported fields
}

func NewLambdaAddProductAdapter

func NewLambdaAddProductAdapter(service application.AddProductUseCase) *LambdaAddProductAdapter

func (*LambdaAddProductAdapter) Handle

type LambdaDeleteProductAdapter

type LambdaDeleteProductAdapter struct {
	// contains filtered or unexported fields
}

func (*LambdaDeleteProductAdapter) Handle

type LambdaGetAllProductsAdapter

type LambdaGetAllProductsAdapter struct {
	// contains filtered or unexported fields
}

func (*LambdaGetAllProductsAdapter) Handle

type LambdaGetProductUseCaseAdapter

type LambdaGetProductUseCaseAdapter struct {
	// contains filtered or unexported fields
}

func (*LambdaGetProductUseCaseAdapter) Handle

type LambdaUpdateProductUseCaseAdapter

type LambdaUpdateProductUseCaseAdapter struct {
	// contains filtered or unexported fields
}

func (*LambdaUpdateProductUseCaseAdapter) Handle

type UpdateProductUseCaseRequest

type UpdateProductUseCaseRequest struct {
	Name        string  `json:"name"`
	Description string  `json:"description"`
	Price       float64 `json:"price"`
}

type UpdateProductUseCaseResponse

type UpdateProductUseCaseResponse struct {
	ID          string  `json:"id"`
	Name        string  `json:"name"`
	Description string  `json:"description"`
	Price       float64 `json:"price"`
	CreatedAt   string  `json:"created_at"`
	UpdatedAt   string  `json:"updated_at"`
}

Jump to

Keyboard shortcuts

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