usecase

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheUsecase

type CacheUsecase struct {
	Ctx context.Context
}

func (CacheUsecase) GetCache

func (cu CacheUsecase) GetCache(requesturi string) (bool, repository.CachedContentRepository, error)

func (CacheUsecase) SetCache

func (cu CacheUsecase) SetCache(mimetype string, data []byte, requesturi string, latsModified string)

type ImageUsecase

type ImageUsecase struct {
	Ctx context.Context
}

func (ImageUsecase) ConvertImage

func (iu ImageUsecase) ConvertImage(imageoption actor.ImageOperatorOption, reader multipart.File) (convertedimagebyte []byte, err error)

func (ImageUsecase) GetFile

func (iu ImageUsecase) GetFile(storageKeyValue string) (contenttype string, filebyte []byte, err error)

func (ImageUsecase) GetFileInfo

func (iu ImageUsecase) GetFileInfo(storageKeyValue string) (objectInfo entity.StorageObjectInfo, err error)

func (ImageUsecase) GetFileStream

func (iu ImageUsecase) GetFileStream(storageKeyValue string) (contenttype string, contentLength int, filebyte io.ReadCloser, err error)

func (ImageUsecase) GetImage

func (iu ImageUsecase) GetImage(imageoption actor.ImageOperatorOption, storageKeyValue string) (contenttype string, imagebyte []byte, err error)

func (ImageUsecase) UploadToStorage

func (iu ImageUsecase) UploadToStorage(FormKeyPath string, reader multipart.File, imagebyte []byte) error

type TokenUsecase

type TokenUsecase struct {
}

func (TokenUsecase) CreateToken

func (tu TokenUsecase) CreateToken(ctx context.Context, claimname string) string

Jump to

Keyboard shortcuts

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