usecase

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 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{}

func (CacheUsecase) GetCache

func (CacheUsecase) SetCache

func (cu CacheUsecase) SetCache(ctx context.Context, mimetype string, data []byte, requesturi string, latsModified string)

type ImageUsecase

type ImageUsecase struct{}

func (ImageUsecase) ConvertImage

func (iu ImageUsecase) ConvertImage(ctx context.Context, imageoption actor.ImageOperatorOption, reader multipart.File) ([]byte, error)

func (ImageUsecase) GetFile

func (iu ImageUsecase) GetFile(ctx context.Context, storageKeyValue string) (string, []byte, error)

func (ImageUsecase) GetFileInfo

func (iu ImageUsecase) GetFileInfo(ctx context.Context, storageKeyValue string) (entity.StorageObjectInfo, error)

func (ImageUsecase) GetFileStream

func (iu ImageUsecase) GetFileStream(ctx context.Context, storageKeyValue string) (string, int, io.ReadCloser, error)

func (ImageUsecase) GetImage

func (iu ImageUsecase) GetImage(ctx context.Context, imageoption actor.ImageOperatorOption, storageKeyValue string) (string, []byte, error)

func (ImageUsecase) UploadToStorage

func (iu ImageUsecase) UploadToStorage(ctx context.Context, 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