Documentation ¶
Index ¶
- func New[T any](repo content.Repository[T], wrap func(T) mycontent.Data, ...) *crud[T]
- func NewAttachment(repo content.Repository[*entity.Attachment], blobRepo blob.Repository, ...) *crudWithAttachment
- func NewWithHook[T any](repo content.Repository[T], wrap func(T) mycontent.Data, ...) *crudWithHook[T]
- type URLFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New[T any]( repo content.Repository[T], wrap func(T) mycontent.Data, validate func(T) *types.CommonError, urlFormat URLFormat, ) *crud[T]
func NewAttachment ¶
func NewAttachment( repo content.Repository[*entity.Attachment], blobRepo blob.Repository, hideUrl bool, namespace string, urlFormat URLFormat, ) *crudWithAttachment
NewWithAttachment creates the basic CRUD handle, but enables attachment Whether this is private or not will mostly be depended by the blob repository
func NewWithHook ¶
func NewWithHook[T any]( repo content.Repository[T], wrap func(T) mycontent.Data, validate func(T) *types.CommonError, updateHook mycontent.UpdateHook[T], urlFormat URLFormat, ) *crudWithHook[T]
Types ¶
Click to show internal directories.
Click to hide internal directories.