http

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorWriter added in v0.6.0

func ErrorWriter() runtime.ErrorHandlerFunc

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port uint16) *Server

func NewServerWithListener added in v0.7.0

func NewServerWithListener(listener net.Listener) *Server

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) BuildServer added in v0.2.0

func (s *Server) BuildServer(tlsConfig *tls.Config) (err error)

func (*Server) Close

func (s *Server) Close() error

func (*Server) RegistryDesc

func (s *Server) RegistryDesc(services ...transport.Service)

func (*Server) Router

func (s *Server) Router() chi.Router

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) UseMiddleware added in v0.7.0

func (s *Server) UseMiddleware(middlewares ...func(http.Handler) http.Handler)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL