forked from mtusi2026/mtusi2026lab5
feat: add durable image processing pipeline
This commit is contained in:
@@ -87,8 +87,12 @@ func (s attachmentServiceStub) Upload(context.Context, attachment.Upload) (model
|
||||
func (s attachmentServiceStub) Metadata(context.Context, string, string) (model.Attachment, error) {
|
||||
return s.uploaded, s.err
|
||||
}
|
||||
func (s attachmentServiceStub) Content(context.Context, string, string) (attachment.Content, error) {
|
||||
return attachment.Content{Attachment: s.uploaded, Body: io.NopCloser(strings.NewReader("content"))}, s.err
|
||||
func (s attachmentServiceStub) Content(context.Context, string, string, string) (attachment.Content, error) {
|
||||
return attachment.Content{
|
||||
Attachment: s.uploaded,
|
||||
Variant: model.Variant{ContentType: s.uploaded.ContentType, SizeBytes: s.uploaded.SizeBytes},
|
||||
Body: io.NopCloser(strings.NewReader("content")),
|
||||
}, s.err
|
||||
}
|
||||
|
||||
type sessionStub struct {
|
||||
|
||||
Reference in New Issue
Block a user