// NewHTTPServer creates a HTTP server
NewHTTPServer creates a HTTP server
// NewHTTPServer creates a HTTP server
func NewHTTPServer(c *app.ServerConfig) *http.Server {
	router := routers.NewRouter()
	srv := http.NewServer(
		http.WithAddress(c.Addr),
		http.WithReadTimeout(c.ReadTimeout),
		http.WithWriteTimeout(c.WriteTimeout),
	)
	srv.Handler = router
	v1.RegisterGreeterHTTPServer(router, &service.GreeterService{})
	return srv
}
func NewHTTPServer ( c * app . ServerConfig ) * http . Server { router := routers . NewRouter ( ) srv := http . NewServer ( http . WithAddress ( c . Addr ) , http . WithReadTimeout ( c . ReadTimeout ) , http . WithWriteTimeout ( c . WriteTimeout ) , ) srv . Handler = router v1 . RegisterGreeterHTTPServer ( router , & service . GreeterService { } ) return srv }
NewHTTPServer creates a HTTP server
NewHTTPServer creates a HTTP server