Documentation ¶
Index ¶
- type CacheUsecase
- type ImageUsecase
- func (iu *ImageUsecase) ConvertImage(ctx context.Context, imageoption actor.ImageOperatorOption, ...) ([]byte, error)
- func (iu *ImageUsecase) GetFile(ctx context.Context, storageKeyValue string) (string, []byte, error)
- func (iu *ImageUsecase) GetFileInfo(ctx context.Context, storageKeyValue string) (entity.StorageObjectInfo, error)
- func (iu *ImageUsecase) GetFileStream(ctx context.Context, storageKeyValue string) (string, int, io.ReadCloser, error)
- func (iu *ImageUsecase) GetImage(ctx context.Context, imageoption actor.ImageOperatorOption, ...) (string, []byte, error)
- func (iu *ImageUsecase) UploadToStorage(ctx context.Context, formKeyPath string, reader multipart.File, ...) error
- type TokenUsecase
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)
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) 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 ¶
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
Click to show internal directories.
Click to hide internal directories.