Documentation ¶
Overview ¶
Package web implements an HTTP server as a basis for web-based services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidOption = errors.New("web: invalid option given")
ErrInvalidOption is returned when a configuration option is not set or otherwise invalid.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a barebones HTTP server.
type StartOption ¶
type StartOption func(*startParams)
StartOption sets start parameters on a *Server.
func Logger ¶
func Logger(l *zap.Logger) StartOption
func Router ¶
func Router(r *chi.Mux) StartOption
Click to show internal directories.
Click to hide internal directories.