Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeFrameLength ¶
Types ¶
type Conn ¶
type Conn struct { gnet.Conn // contains filtered or unexported fields }
func FrameConvert ¶
func FrameConvert(conn gnet.Conn) *Conn
func (*Conn) FrameReader ¶
func (*Conn) WebSocketTextWriter ¶
func (self *Conn) WebSocketTextWriter() *TextWriter
type Handler ¶
type Handler interface {
Proc(ctx *eventserve.GnetContext) interface{}
}
type OnCallPostPlugin ¶ added in v1.1.7
type OnCallPostPlugin interface {
OnCallPost(ctx *eventserve.GnetContext, x interface{}, reply interface{}) error
}
逻辑处理之后
type OnCallPrePlugin ¶ added in v1.1.7
type OnCallPrePlugin interface {
OnCallPre(ctx *eventserve.GnetContext, x interface{}) error
}
逻辑处理之前
type OnUpgraderPlugin ¶ added in v1.1.7
type OnUpgraderPlugin interface {
OnUpgrader(ctx *eventserve.GnetContext) error
}
ws链接建立成功之后
type TextWriter ¶
func (*TextWriter) Flush ¶
func (self *TextWriter) Flush() error
Click to show internal directories.
Click to hide internal directories.