strategies

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package strategies contains the message creation strategies for entities and messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetEntityStrategy

type GetEntityStrategy interface {
	GetEntity(
		ctx context.Context, entMsg *message.HandleEntityAndDoMessage,
	) (*models.EntityWithProperties, error)
	GetName() string
}

GetEntityStrategy is the interface for getting entities

type MessageCreateStrategy

type MessageCreateStrategy interface {
	CreateMessage(
		ctx context.Context, ewp *models.EntityWithProperties,
	) (*watermill.Message, error)
	GetName() string
}

MessageCreateStrategy is the interface for creating messages

Directories

Path Synopsis
Package entity contains the entity creation strategies
Package entity contains the entity creation strategies
Package message contains the message creation strategies
Package message contains the message creation strategies

Jump to

Keyboard shortcuts

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