Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct { Logger abstraction.Logger // contains filtered or unexported fields }
Component provides a base functionality for multiple components
func NewHandlerComponent ¶
func NewHandlerComponent(logger abstraction.Logger, presentationType string, handlerName string) *Component
NewHandlerComponent creates a new base component for a presentation handler
func NewRepositoryComponent ¶
func NewRepositoryComponent(logger abstraction.Logger, storageType string, repositoryName string) *Component
NewRepositoryComponent creates a new base component for a repository
func NewServiceComponent ¶
func NewServiceComponent(logger abstraction.Logger, serviceName string) *Component
NewServiceComponent creates a new base component for a service
type Entity ¶
Entity provides common elements for all entities
func LoadEntity ¶
LoadEntity loads data into a new instance of base entity
func (*Entity) GenerateNewID ¶
GenerateNewID generate and assigns a new ID to the entity
Click to show internal directories.
Click to hide internal directories.