rbtschema

package
v0.0.0-...-ae60a63 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleValidationData

type ArticleValidationData struct {
	ReferenceId string `json:"referenceId" example:"UserId"`

	ArticleId string `json:"articleId" example:"ArticleId"`
}

type ArticleValidationPublisher

type ArticleValidationPublisher = rbt.RabbitPublisher[*ArticleValidationData]

type PlaceArticlesData

type PlaceArticlesData struct {
	Id       string `json:"id" example:"ArticleId"`
	Quantity int    `json:"quantity" example:"10"`
}

type PlacedData

type PlacedData struct {
	CartId   string              `json:"cartId" example:"CartId"`
	UserId   string              `json:"userId" example:"UserId"`
	Articles []PlaceArticlesData `json:"articles"`
}

type PlacedDataPublisher

type PlacedDataPublisher = rbt.RabbitPublisher[*PlacedData]

type SendPlacedMessage

type SendPlacedMessage struct {
	CorrelationId string     `json:"correlation_id" example:"123123" `
	Message       PlacedData `json:"message" example:"order"`
}

type SendValidationMessage

type SendValidationMessage struct {
	CorrelationId string                `json:"correlation_id" example:"123123" `
	Exchange      string                `json:"exchange" example:"cart"`
	RoutingKey    string                `json:"routing_key" example:""`
	Message       ArticleValidationData `json:"message"`
}

Jump to

Keyboard shortcuts

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