Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func StartPlatformAPIServer ¶
StartPlatformAPIServer creates a new server instance with all dependencies initialized
func (*Server) Start ¶
func (s *Server) Start(httpCfg config.HTTPListener, httpsCfg config.HTTPSListener, timeouts config.Timeouts) error
Start brings up the enabled listeners. The plain-HTTP and TLS listeners are independent: either or both may run, each on its own port. This mirrors the gateway router's http/https listener split. At least one listener must be enabled.
timeouts bounds connection lifetime on both listeners so a slow or idle peer cannot hold one open indefinitely (Slowloris). It is validated at config load.
Click to show internal directories.
Click to hide internal directories.