github.com/wfusion/gofusion@v1.1.14/http/gracefully/stubs.go (about)

     1  package gracefully
     2  
     3  import (
     4  	"net/http"
     5  
     6  	_ "unsafe"
     7  )
     8  
     9  //go:linkname isClosedConnError golang.org/x/net/http2.isClosedConnError
    10  // isClosedConnError reports whether err is an error from use of a closed
    11  // network connection.
    12  func isClosedConnError(err error) bool
    13  
    14  //go:linkname setupHTTP2_Serve net/http.(*Server).setupHTTP2_Serve
    15  func setupHTTP2_Serve(srv *http.Server) error
    16  
    17  //go:linkname setupHTTP2_ServeTLS net/http.(*Server).setupHTTP2_ServeTLS
    18  func setupHTTP2_ServeTLS(srv *http.Server) error