mirror of https://github.com/perkeep/perkeep.git
importer: add accessors for Target and Search handler
Change-Id: I49cd2a1fc08547eada21cee1506f190fe8f6d6de
This commit is contained in:
parent
c512e3d1be
commit
8a56f3744d
|
@ -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 "":
|
||||
|
|
Loading…
Reference in New Issue