importer: add accessors for Target and Search handler

Change-Id: I49cd2a1fc08547eada21cee1506f190fe8f6d6de
This commit is contained in:
Brad Fitzpatrick 2013-10-20 12:24:20 -07:00
parent c512e3d1be
commit 8a56f3744d
1 changed files with 8 additions and 0 deletions

View File

@ -54,6 +54,14 @@ func (h *Host) String() string {
return fmt.Sprintf("%s (a %T)", h.imp.Prefix(), h.imp) return fmt.Sprintf("%s (a %T)", h.imp.Prefix(), h.imp)
} }
func (h *Host) Target() blobserver.StatReceiver {
return h.target
}
func (h *Host) Search() *search.Handler {
return h.search
}
func (h *Host) ServeHTTP(w http.ResponseWriter, r *http.Request) { func (h *Host) ServeHTTP(w http.ResponseWriter, r *http.Request) {
switch r.FormValue("mode") { switch r.FormValue("mode") {
case "": case "":