Documentation ¶ Index ¶ Variables type RequestBody type Response type UseCase func (u *UseCase) ImageRecognition(ctx context.Context, req RequestBody) (*Response, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrBase64Decode = errors.New("failed to base64 decode") ErrGenerateUniqueId = errors.New("failed to generate uniqueId") ErrUploadToS3 = errors.New("failed to upload to s3") ErrRekognition = errors.New("failed to rekognition detectLabels") ) Functions ¶ This section is empty. Types ¶ type RequestBody ¶ type RequestBody struct { Image string `json:"image"` ImageExtension string `json:"imageExtension"` } type Response ¶ type Response struct { Labels []types.Label `json:"labels"` } type UseCase ¶ type UseCase struct { RekognitionClient infrastructure.RekognitionClient S3Uploader infrastructure.S3Uploader UniqueIdGenerator infrastructure.UniqueIdGenerator } func (*UseCase) ImageRecognition ¶ func ( u *UseCase, ) ImageRecognition( ctx context.Context, req RequestBody, ) (*Response, error) Source Files ¶ View all Source files usecase.go Click to show internal directories. Click to hide internal directories.