// 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.") }
// 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() }