Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartNamed ¶
func StartNamed(serverNames ...string)
StartNamed starts the named server instances.
Types ¶
type Instance ¶
type Instance interface { // Run runs the server, passing in the channel it should listen on for // stop command. Run(stopChan <-chan struct{}) // Init initializes server resources. In particular this will be called everytime // a server is started. It should re-initialize all server state. Init() }
Instance is an instance of a server that is being monitored. A server implementing this interface must be restartable.
type Server ¶
Server is an instance of server that can be started, stopped and queried for status. A server is a go routine.
func (*Server) Start ¶
func (s *Server) Start()
Start starts a server instance. It handles marking a server as done when it has finished running.
Click to show internal directories.
Click to hide internal directories.