Documentation ¶ Overview ¶ Package httpserver implements HTTP server. Index ¶ type Option func Port(port string) Option func Prefork(prefork bool) Option func ReadTimeout(timeout time.Duration) Option func ShutdownTimeout(timeout time.Duration) Option func WriteTimeout(timeout time.Duration) Option type Server func New(opts ...Option) *Server func (s *Server) Notify() <-chan error func (s *Server) Shutdown() error func (s *Server) Start() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Option ¶ type Option func(*Server) Option -. func Port ¶ func Port(port string) Option Port -. func Prefork ¶ added in v1.9.0 func Prefork(prefork bool) Option Prefork -. func ReadTimeout ¶ func ReadTimeout(timeout time.Duration) Option ReadTimeout -. func ShutdownTimeout ¶ func ShutdownTimeout(timeout time.Duration) Option ShutdownTimeout -. func WriteTimeout ¶ func WriteTimeout(timeout time.Duration) Option WriteTimeout -. type Server ¶ type Server struct { App *fiber.App // contains filtered or unexported fields } Server -. func New ¶ added in v1.2.1 func New(opts ...Option) *Server New -. func (*Server) Notify ¶ func (s *Server) Notify() <-chan error Notify -. func (*Server) Shutdown ¶ func (s *Server) Shutdown() error Shutdown -. func (*Server) Start ¶ added in v1.7.0 func (s *Server) Start() Source Files ¶ View all Source files options.goserver.go Click to show internal directories. Click to hide internal directories.