Documentation ¶
Overview ¶
Package options 构建路由的参数
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORS ¶
type ConnectionFunc ¶
type ConnectionFunc func(http.ResponseWriter, *http.Request) (http.ResponseWriter, *http.Request)
OnConnection 每个新链接到来时对 http.ResponseWriter 和 *http.Request 的处理
type Options ¶
type Options struct { Lock bool CORS *CORS Interceptors *syntax.Interceptors URLDomain string RecoverFunc RecoverFunc Connections []ConnectionFunc }
type RecoverFunc ¶
type RecoverFunc func(http.ResponseWriter, any)
Click to show internal directories.
Click to hide internal directories.