resource

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRUD

type CRUD interface {
	Upload(reqDTO dto.UploadResourceRequest) (*agg.Resource, error)
	Delete(reqDTO dto.DeleteResourceRequest) (err error)
}

type CRUDService

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

func NewResourceService

func NewResourceService(
	ctx context.Context,
	logger logger.Logger,
	uploader uploader.Uploader,
	validator validator.Resource,
	builder builder.Resource,
	repository repository.Resource,
	storage storager.Storage,
) *CRUDService

func (*CRUDService) Delete

func (s *CRUDService) Delete(reqDTO dto.DeleteResourceRequest) (err error)

func (*CRUDService) Upload

func (s *CRUDService) Upload(reqDTO dto.UploadResourceRequest) (resource *agg.Resource, err error)

Jump to

Keyboard shortcuts

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