| 29 | } |
| 30 | |
| 31 | type FileCache interface { |
| 32 | Store(ctx context.Context, key string, value []byte) error |
| 33 | Load(ctx context.Context, key string) ([]byte, bool, error) |
| 34 | Delete(ctx context.Context, key string) error |
| 35 | } |
| 36 | |
| 37 | func previewHandler(imgSvc ImgService, fileCache FileCache, enableThumbnails, resizePreview bool) handleFunc { |
| 38 | return withUser(func(w http.ResponseWriter, r *http.Request, d *data) (int, error) { |
no outgoing calls
no test coverage detected