diff options
Diffstat (limited to 'pkg/rpc/server.go')
| -rw-r--r-- | pkg/rpc/server.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pkg/rpc/server.go b/pkg/rpc/server.go deleted file mode 100644 index a71ed8ca..00000000 --- a/pkg/rpc/server.go +++ /dev/null @@ -1,25 +0,0 @@ -package rpc - -import ( - fmt "fmt" - http "net/http" -) - -func New() http.Handler { - mux := http.NewServeMux() - for _, handler := range handlers() { - fmt.Printf("Registering : %v\n", handler.PathPrefix()) - mux.Handle(handler.PathPrefix(), handler) - } - - mux.Handle("/health", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusOK) - })) - return mux -} - -func handlers() []TwirpServer { - return []TwirpServer{ - NewAbilityServer(NewAbilityService()), - } -} |
