Close gracefully shuts down the imgproxy instance
(ctx context.Context)
| 222 | |
| 223 | // Close gracefully shuts down the imgproxy instance |
| 224 | func (i *Imgproxy) Close(ctx context.Context) { |
| 225 | i.monitoring.Stop(ctx) |
| 226 | i.errorReporter.Close() |
| 227 | } |
| 228 | |
| 229 | func (i *Imgproxy) Fetcher() *fetcher.Fetcher { |
| 230 | return i.fetcher |