Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface { config.TLS // Addr returns that network address the server listens to. Addr() string }
Config contains the information necessary to create an HTTP server
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option provides options for configuring the creation of a http server.
func WithLogger ¶
WithLogger will add logging to the http server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
New creates an HTTP server with a default handler and has not started to accept requests yet.
Click to show internal directories.
Click to hide internal directories.