Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthErrorRedirect ¶
func AuthErrorRedirect(w http.ResponseWriter, r *http.Request)
AuthErrorRedirect redirects the user to the original proxied URL with a HTTP status of 301 ("Moved Permanently").
func NewImageProxy ¶
NewImageProxy returns an HTTP handler that serves as a reverse image proxy for the given request. Cookie verification is already handled by the time the request arrives here.
Types ¶
type RetrievalCache ¶
type RetrievalCache struct {
// contains filtered or unexported fields
}
RetrievalCache is a probabilistic cache to determine if an article has ever retrieved seen before.
func StartRetrievalCache ¶
func StartRetrievalCache(ctx context.Context, d *storage.Database) *RetrievalCache
StartRetrievalCache creates a new RetrievalCache and starts background processing.
Click to show internal directories.
Click to hide internal directories.