queries

package
v0.0.0-...-c86e3d9 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadArticleQuery

type ReadArticleQuery struct {
	AggregateArticleID string `json:"aggregate_article_id"`
}

ReadArticleQuery Query to get one article

type ReadArticleQueryHandler

type ReadArticleQueryHandler struct {
	Repo elasticsearch.ElasticRepository
}

ReadArticleQueryHandler allows to get article

func NewReadArticleQueryHandler

func NewReadArticleQueryHandler(repo elasticsearch.ElasticRepository) *ReadArticleQueryHandler

NewReadArticleQueryHandler Creates an instance

func (ReadArticleQueryHandler) Handle

func (qHandler ReadArticleQueryHandler) Handle(query cqrs.Query) (interface{}, error)

Handle Get an article from elasticsearch database

Jump to

Keyboard shortcuts

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