Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer wrapper of http.Server
type HTTPServerOption ¶ added in v1.0.0
type HTTPServerOption func(*HTTPServer)
HTTPServerOption allows configure http server optional settings
func HTTPShutdownTimeout ¶ added in v1.0.0
func HTTPShutdownTimeout(timeout time.Duration) HTTPServerOption
HTTPShutdownTimeout sets shutdown timeout
func HTTPSkipErrors ¶ added in v1.0.0
func HTTPSkipErrors(skip bool) HTTPServerOption
HTTPSkipErrors sets skip errors flag
func HTTPWithTLSConfig ¶ added in v1.1.1
func HTTPWithTLSConfig(cfg *tls.Config) HTTPServerOption
HTTPWithTLSConfig define tls config for server
type MultiServer ¶
type MultiServer struct {
// contains filtered or unexported fields
}
MultiServer is servers aggregator
func (*MultiServer) Start ¶
func (ms *MultiServer) Start() error
Start calls Start function for each server in group, returns first error when happen
func (*MultiServer) Stop ¶
func (ms *MultiServer) Stop() error
Stop multiple servers and returns multierrr
type Server ¶
Server interface
func NewHTTPServer ¶
func NewHTTPServer(s *http.Server, opts ...HTTPServerOption) Server
NewHTTPServer returns new http.Server wrapper
Click to show internal directories.
Click to hide internal directories.