Documentation ¶
Overview ¶
Package http implements an HTTP server.
Index ¶
- func ErrorWriter() runtime.ErrorHandlerFunc
- type Server
- func (s *Server) Addr() string
- func (s *Server) BuildServer(tlsConfig *tls.Config) (err error)
- func (s *Server) Close() error
- func (s *Server) RegistryDesc(services ...transport.Service)
- func (s *Server) Router() chi.Router
- func (s *Server) Serve() error
- func (s *Server) UseMiddleware(middlewares ...func(http.Handler) http.Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorWriter ¶ added in v0.6.0
func ErrorWriter() runtime.ErrorHandlerFunc
ErrorWriter returns runtime.ErrorHandlerFunc to configure error handling.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
A Server defines configuration for running an HTTP server.
func NewServerWithListener ¶ added in v0.7.0
NewServerWithListener returns http server with listener.
func (*Server) BuildServer ¶ added in v0.2.0
BuildServer init http server.
func (*Server) RegistryDesc ¶
RegistryDesc in http server.
Click to show internal directories.
Click to hide internal directories.