factory

package
v0.0.0-...-f1551be Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

This package is meant to be used whenever a factory is needed.

Methods for creating domain objects should delegate to a specialized Factory object
such that alternative implementations may be easily interchanged

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCategoryEntity

func NewCategoryEntity(categoryID int) (*entity.Category, error)

NewCategoryEntity create a new category entity

func NewMediaEntity

func NewMediaEntity(displayName, title, lang string) (*entity.Media, error)

NewMediaEntity create a new media entity

func NewPodcast

func NewPodcast(pod *entity.Podcast, media *entity.Media, category *entity.Category) (*aggregate.Podcast, error)

NewPodcast generate a new podcast aggregate root

Types

This section is empty.

Jump to

Keyboard shortcuts

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