Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func NewCache ¶
func NewCache(r Repository, s KeyValueStore, f FileStorage, l Logger) *Cache
func (*Cache) ListVersions ¶
type FileStorage ¶
type FileStorage interface { Open(filename string) (io.ReadCloser, error) Create(filename string) (io.WriteCloser, error) }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) DownloadURL ¶
func (h *Handler) DownloadURL(w http.ResponseWriter, r *http.Request)
func (*Handler) ListVersions ¶
func (h *Handler) ListVersions(w http.ResponseWriter, r *http.Request)
func (*Handler) ProxyDownload ¶
func (h *Handler) ProxyDownload(w http.ResponseWriter, r *http.Request)
type KeyValueStore ¶
type Repository ¶
type StoreInPath ¶
type StoreInPath string
StoreInPath implements the FileStorage interface by storing files locally on the file-system at the specified path. It's a bare minimum implementation, and doesn't create any folders.
func (StoreInPath) Create ¶
func (s StoreInPath) Create(filename string) (io.WriteCloser, error)
func (StoreInPath) Open ¶
func (s StoreInPath) Open(filename string) (io.ReadCloser, error)
Click to show internal directories.
Click to hide internal directories.