Documentation ¶
Index ¶
- type Monitor
- type Server
- func (s *Server) GetApiServerListeners() []net.Listener
- func (s *Server) Kill()
- func (s *Server) MarshalJSON() ([]byte, error)
- func (s *Server) Purge()
- func (s *Server) Run()
- func (s *Server) SetReconfigServer(isReconfigServer bool)
- func (s *Server) SetRestartServer(isRestartServer bool)
- func (s *Server) Supervise()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
func NewMonitor ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetApiServerListeners ¶
func (*Server) Kill ¶
func (s *Server) Kill()
Kill is used to gracefully terminate the server by triggering the Monitor to shut down
func (*Server) MarshalJSON ¶
func (*Server) SetReconfigServer ¶
func (*Server) SetRestartServer ¶
func (*Server) Supervise ¶
func (s *Server) Supervise()
Supervise monitors the life of the Server and coordinates its shutdown. A shutdown occurs when the monitor returns, either because a health check fails or a user triggers a shutdown. If the shutdown is due to a health check failure, the Server is restarted. Supervise will block shutdown until all components have finished shutting down or a timeout occurs; if this happens, the Server will not automatically be restarted.
Click to show internal directories.
Click to hide internal directories.