From 2014173bbc055e0bf9b38ac17a7d3dd00253204f Mon Sep 17 00:00:00 2001 From: handicraftsman Date: Tue, 27 Apr 2021 20:49:17 +0300 Subject: [PATCH] Added Server.Unwrap function --- service/http/service.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/service/http/service.go b/service/http/service.go index 0dd56785..dac562de 100755 --- a/service/http/service.go +++ b/service/http/service.go @@ -44,6 +44,11 @@ func (s *Server) Start() error { return server.ListenAndServe() } +// Gets the underlying serve address and http.ServeMux +func (s *Server) Unwrap() (string, *http.ServeMux) { + return s.address, s.mux +} + // Stop stops previously started HTTP service func (s *Server) Stop() error { // TODO: implement service stop