creating_product

package
v0.0.0-...-4b4a10f Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProduct

type CreateProduct struct {
	ProductID   uuid.UUID `validate:"required"`
	Name        string    `validate:"required,gte=0,lte=255"`
	Description string    `validate:"required,gte=0,lte=5000"`
	Price       float64   `validate:"required,gte=0"`
	CreatedAt   time.Time `validate:"required"`
}

func NewCreateProduct

func NewCreateProduct(name string, description string, price float64) *CreateProduct

type CreateProductHandler

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

func NewCreateProductHandler

func NewCreateProductHandler(log logger.ILogger, cfg *config.Config, repository contracts.ProductRepository,
	rabbitmqPublisher rabbitmq.IPublisher, jaegerTracer trace.Tracer) *CreateProductHandler

func (*CreateProductHandler) Handle

Directories

Path Synopsis
endpoints
v1

Jump to

Keyboard shortcuts

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