github.com/zhongdalu/gf@v1.0.0/g/g_setting.go (about)

     1  // Copyright 2019 gf Author(https://github.com/zhongdalu/gf). All Rights Reserved.
     2  //
     3  // This Source Code Form is subject to the terms of the MIT License.
     4  // If a copy of the MIT was not distributed with this file,
     5  // You can obtain one at https://github.com/zhongdalu/gf.
     6  
     7  package g
     8  
     9  import "github.com/zhongdalu/gf/g/net/ghttp"
    10  
    11  // SetServerGraceful enables/disables graceful reload feature of http Web Server.
    12  // This feature is disabled in default.
    13  func SetServerGraceful(enabled bool) {
    14  	ghttp.SetGraceful(enabled)
    15  }