Documentation ¶
Index ¶
- Variables
- func AutoRender(w http.ResponseWriter, data interface{}, err error)
- func JSONR(c *gin.Context, arg ...interface{}) (werror error)
- func RenderDataJson(w http.ResponseWriter, data interface{})
- func RenderJson(w http.ResponseWriter, v interface{})
- func RenderMsgJson(w http.ResponseWriter, msg string)
- func Start()
- type Dto
- type RespJson
- type TcpKeepAliveListener
Constants ¶
This section is empty.
Variables ¶
View Source
var Close_chan, Close_done_chan chan int
Functions ¶
func AutoRender ¶
func AutoRender(w http.ResponseWriter, data interface{}, err error)
func RenderDataJson ¶
func RenderDataJson(w http.ResponseWriter, data interface{})
func RenderJson ¶
func RenderJson(w http.ResponseWriter, v interface{})
func RenderMsgJson ¶
func RenderMsgJson(w http.ResponseWriter, msg string)
Types ¶
type TcpKeepAliveListener ¶
type TcpKeepAliveListener struct {
*net.TCPListener
}
tcpKeepAliveListener sets TCP keep-alive timeouts on accepted connections. It's used by ListenAndServe and ListenAndServeTLS so dead TCP connections (e.g. closing laptop mid-download) eventually go away.
Click to show internal directories.
Click to hide internal directories.