Documentation ¶
Index ¶
- func ValidateWarehousePutInAttempt(prefix string, attempt *entities.Attempt) error
- func ValidateWarehousePutInMessage(prefix string, message *entities.Message) error
- func ValidateWarehousePutInRequest(prefix string, request *entities.Request) error
- func ValidateWarehousePutInResponse(prefix string, response *entities.Response) error
- type Storage
- type Warehouse
- type WarehousePutIn
- type WarehousePutOut
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Storage ¶
type Storage interface {
Warehouse() Warehouse
}
func New ¶
func New( conf *config.Config, logger logging.Logger, infra *infrastructure.Infrastructure, repositories repositories.Repositories, ) Storage
type Warehouse ¶
type Warehouse interface {
Put(ctx context.Context, in *WarehousePutIn) (*WarehousePutOut, error)
}
type WarehousePutIn ¶
type WarehousePutIn struct { BatchSize int Messages map[string]*entities.Message Requests map[string]*entities.Request Responses map[string]*entities.Response Attempts map[string]*entities.Attempt }
func (*WarehousePutIn) Count ¶
func (in *WarehousePutIn) Count() int
func (*WarehousePutIn) Validate ¶
func (in *WarehousePutIn) Validate() error
type WarehousePutOut ¶
Click to show internal directories.
Click to hide internal directories.