Set endpoint metadata in the http server

This commit is contained in:
Asim Aslam
2017-04-03 15:03:46 +01:00
committed by Vasiliy Tolstov
parent 31f1702ab2
commit 2327e1d4e8
2 changed files with 21 additions and 3 deletions

View File

@@ -7,6 +7,7 @@ import (
type httpHandler struct {
opts server.HandlerOptions
eps []*registry.Endpoint
hd interface{}
}
@@ -19,7 +20,7 @@ func (h *httpHandler) Handler() interface{} {
}
func (h *httpHandler) Endpoints() []*registry.Endpoint {
return []*registry.Endpoint{}
return h.eps
}
func (h *httpHandler) Options() server.HandlerOptions {