Documentation ¶
Index ¶
Constants ¶
View Source
const ( CLIENT service = 1 << 0 //标记为客户端 SERVER service = 1 << 1 //标记为服务端 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct { Ctx context.Context Storage storage // contains filtered or unexported fields }
func (*Context) ForthwithSend ¶
type Option ¶
type Option func(e *Options)
func WithServerAuth ¶
func WithServerAuth(fn CheckOriginFunc) Option
func WithServerHttp ¶
func WithServerHttp(w http.ResponseWriter, r *http.Request) Option
Click to show internal directories.
Click to hide internal directories.