From 31f1702ab2570f8934e02b2d64a4701243420b65 Mon Sep 17 00:00:00 2001 From: Asim Date: Fri, 18 Nov 2016 18:03:52 +0000 Subject: [PATCH] Add http server to cmd servers --- http.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/http.go b/http.go index 0d030ab..02fa234 100644 --- a/http.go +++ b/http.go @@ -7,6 +7,7 @@ import ( "net/http" "sync" + "github.com/micro/go-micro/cmd" "github.com/micro/go-micro/registry" "github.com/micro/go-micro/server" ) @@ -18,6 +19,10 @@ type httpServer struct { exit chan chan error } +func init() { + cmd.DefaultServers["http"] = NewServer +} + func (h *httpServer) Options() server.Options { h.Lock() opts := h.opts