Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(o *options)
Option Option fucntion
func WithAddress ¶
WithAddress sets the pprof address default is ":8081"
func WithShutdownTimeOut ¶
WithShutdownTimeOut sets the shutdown time out default is 3s
type ResponseWriter ¶
ResponseWriter 响应
func BuildResponseMid ¶
func BuildResponseMid(w http.ResponseWriter) ResponseWriter
BuildResponseMid http 注入获取 StatusCode 等信息
Click to show internal directories.
Click to hide internal directories.