usecase

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 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 deprecated added in v1.9.1

func NewCacheUsecase() *CacheUsecase

NewCacheUsecase creates a new CacheUsecase.

Deprecated: Use NewCacheUsecaseWithConfig for better error handling.

func NewCacheUsecaseWithConfig added in v1.10.4

func NewCacheUsecaseWithConfig(ctx context.Context) (*CacheUsecase, error)

NewCacheUsecaseWithConfig creates a new CacheUsecase with proper error handling.

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

func NewImageUsecase() *ImageUsecase

NewImageUsecase creates a new ImageUsecase.

Deprecated: Use NewImageUsecaseWithConfig for better error handling.

func NewImageUsecaseWithConfig added in v1.10.4

func NewImageUsecaseWithConfig(ctx context.Context) (*ImageUsecase, error)

NewImageUsecaseWithConfig creates a new ImageUsecase with proper error handling.

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