Documentation ¶
Index ¶
- type BindGetAll
- type Handler
- func (h *Handler) BasicAuth(fn func(http.ResponseWriter, *http.Request)) http.HandlerFunc
- func (h *Handler) DownloadFile(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAllDatasets(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAllPublications(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetDataset(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetPublication(w http.ResponseWriter, r *http.Request)
- type Hits
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindGetAll ¶
type Handler ¶
type Handler struct { handlers.BaseHandler Repo *repositories.Repo FileStore backends.FileStore IPRanges string IPFilter *ipfilter.IPFilter FrontendUsername string FrontendPassword string }
func (*Handler) BasicAuth ¶
func (h *Handler) BasicAuth(fn func(http.ResponseWriter, *http.Request)) http.HandlerFunc
safe basic auth handling see https://www.alexedwards.net/blog/basic-authentication-in-go
func (*Handler) DownloadFile ¶
func (h *Handler) DownloadFile(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAllDatasets ¶
func (h *Handler) GetAllDatasets(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAllPublications ¶
func (h *Handler) GetAllPublications(w http.ResponseWriter, r *http.Request)
func (*Handler) GetDataset ¶
func (h *Handler) GetDataset(w http.ResponseWriter, r *http.Request)
func (*Handler) GetPublication ¶
func (h *Handler) GetPublication(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.