Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a server, that currently only supports HTTP.
func New ¶
func New(cfg *Config, logger log.Logger, middlewares ...Middleware) *Server
New creates a new server.
func (*Server) RegisterHandler ¶
RegisterHandler registers a handler.
func (*Server) RegisterMiddleware ¶
func (s *Server) RegisterMiddleware(m Middleware)
RegisterMiddleware registers a middleware.
Click to show internal directories.
Click to hide internal directories.