Documentation ¶
Overview ¶
Package server implements the HTTP server for flipper.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
Option is a functional option for the server.
func WithLogger ¶
WithLogger sets the logger for the server.
func WithShutdownTimeout ¶
WithShutdownTimeout sets the shutdown timeout for the server.
func WithStaticFS ¶
WithStaticFS sets the static file system for the server.
func WithTemplateEngine ¶
WithTemplateEngine sets the template engine for the server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a simple HTTP server.
func (*Server) ListenAndServe ¶
ListenAndServe listens on the configured address and serves requests. When the context is cancelled, it attempts to gracefully shut down.
Click to show internal directories.
Click to hide internal directories.