retrieving

package
v0.0.0-...-0be3dab Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ContentQueryType query.Type = "query.retrieving.Content"

Variables

This section is empty.

Functions

func MakeHandler

func MakeHandler(b query.Bus, logger kitlog.Logger) gin.HandlerFunc

func NewService

func NewService(contentRepository cr.ContentRepository, eventBus event.Bus) *service

Types

type ContentQuery

type ContentQuery struct {
	// contains filtered or unexported fields
}

func NewContentQuery

func NewContentQuery(contentId cr.ContentID) ContentQuery

func (ContentQuery) Type

func (c ContentQuery) Type() query.Type

type ContentQueryHandler

type ContentQueryHandler struct {
	// contains filtered or unexported fields
}

func NewContentQueryHandler

func NewContentQueryHandler(service Service) ContentQueryHandler

func (ContentQueryHandler) Handle

func (h ContentQueryHandler) Handle(ctx context.Context, query query.Query) (interface{}, error)

type Service

type Service interface {
	QueryContent(ctx context.Context, uuid string) (cr.Content, error)
}

Jump to

Keyboard shortcuts

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