mycontentapi

package
v0.0.0-...-3ce7580 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentUploadMetadata

type ContentUploadMetadata struct {
	*ResourceManagerService[*entity.Attachment]
	// contains filtered or unexported fields
}

func NewAttachment

func NewAttachment(
	repo content.Repository[*entity.Attachment],
	blobRepo blob.Repository,
	mainRefParam string,
	hideUrl bool,
	namespace string,
	urlFormat mycontent_crud.URLFormat,
	cacheControl string,
) *ContentUploadMetadata

Behave exatctly like the other API, but Can only do repository "Put" via Upload API Can on

func (*ContentUploadMetadata) Get

func (*ContentUploadMetadata) Upload

type ResourceManagerService

type ResourceManagerService[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](
	repo content.Repository[T],
	allocate func() T,
	validate func(T) *types.CommonError,
	wrap func(T) mycontent.Data,
	mainRefParam string,
	urlFormat mycontent_crud.URLFormat,
) *ResourceManagerService[T]

func NewWithHook

func NewWithHook[T any](
	repo content.Repository[T],
	allocate func() T,
	validate func(T) *types.CommonError,
	wrap func(T) mycontent.Data,
	mainRefParam string,
	updateHook mycontent.UpdateHook[T],
	urlFormat mycontent_crud.URLFormat,
) *ResourceManagerService[T]

func (*ResourceManagerService[T]) Delete

func (*ResourceManagerService[T]) Get

func (*ResourceManagerService[T]) Put

Jump to

Keyboard shortcuts

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