Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ArticleCreatedEventType = "ArticleCreatedEvent"
ArticleCreatedEventType is an event
View Source
var ArticleUpdatedEventType = "ArticleUpdatedEvent"
ArticleUpdatedEventType is an event
View Source
var ArticleUpdatedTitleEventType = "ArticleUpdatedTitleEvent"
ArticleUpdatedTitleEventType is an event
Functions ¶
This section is empty.
Types ¶
type ArticleCreatedEvent ¶
type ArticleCreatedEvent struct { Title string `json:"title"` Description string `json:"description"` AggregateArticleID string `json:"aggregate_article_id"` }
ArticleCreatedEvent Event to create an article
type ArticleCreatedEventHandler ¶
type ArticleCreatedEventHandler struct{}
ArticleCreatedEventHandler allows to create an article
func NewArticleCreatedEventHandler ¶
func NewArticleCreatedEventHandler() *ArticleCreatedEventHandler
NewArticleCreatedEventHandler Creates an instance
type ArticleUpdatedEvent ¶
type ArticleUpdatedEvent struct { Title string `json:"title"` Description string `json:"description"` AggregateArticleID string `json:"aggregate_article_id"` }
ArticleUpdatedEvent Event to update an article
type ArticleUpdatedEventHandler ¶
type ArticleUpdatedEventHandler struct{}
ArticleUpdatedEventHandler allows to update an article
func NewArticleUpdatedEventHandler ¶
func NewArticleUpdatedEventHandler() *ArticleUpdatedEventHandler
NewArticleUpdatedEventHandler Creates an instance
type ArticleUpdatedTitleEvent ¶
type ArticleUpdatedTitleEvent struct { Title string `json:"title"` AggregateArticleID string `json:"aggregate_article_id"` }
ArticleUpdatedTitleEvent Event to update title of an article
Click to show internal directories.
Click to hide internal directories.