Exemplo n.º 1
0
// Shutdown will release other resources and halt the server.
func (srv *Server) Shutdown() {
	srv.ImageEngine.Terminate()
	srv.DB.Close()
	srv.Chainstore.Close()
	lg.Info("server shutdown.")
}
Exemplo n.º 2
0
// Close signals to the server that should deny new requests
// and finish up requests in progress.
func (srv *Server) Close() {
	lg.Info("closing server..")
	srv.CancelFunc()
}