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 ¶ added in v0.12.0
func NewMonitor ¶ added in v0.12.0
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetApiServerListeners ¶ added in v0.12.0
func (*Server) Kill ¶ added in v0.12.0
func (s *Server) Kill()
Kill is used to gracefully terminate the server by triggering the Monitor to shut down
func (*Server) MarshalJSON ¶ added in v0.2.0
func (*Server) SetReconfigServer ¶ added in v0.12.0
func (*Server) SetRestartServer ¶ added in v0.13.0
func (*Server) Supervise ¶ added in v0.12.0
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.