usecase

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 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 {
	// contains filtered or unexported fields
}

func NewCacheUsecase added in v1.9.1

func NewCacheUsecase() *CacheUsecase

func (*CacheUsecase) GetCache

func (cu *CacheUsecase) GetCache(ctx context.Context, requesturi string) (bool, repository.CachedContentRepository, error)

func (*CacheUsecase) SetCache

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

type ImageUsecase

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

func NewImageUsecase added in v1.9.1

func NewImageUsecase() *ImageUsecase

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 NewTokenUsecase added in v1.9.1

func NewTokenUsecase() *TokenUsecase

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