From 8a56f3744d0ef9c47dfea68827c4e6ea9ea9cb0a Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 20 Oct 2013 12:24:20 -0700 Subject: [PATCH] importer: add accessors for Target and Search handler Change-Id: I49cd2a1fc08547eada21cee1506f190fe8f6d6de --- pkg/importer/importer.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/importer/importer.go b/pkg/importer/importer.go index 49effc7ee..cd0635cf6 100644 --- a/pkg/importer/importer.go +++ b/pkg/importer/importer.go @@ -54,6 +54,14 @@ func (h *Host) String() string { 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) { switch r.FormValue("mode") { case "":