Documentation ¶
Index ¶
- func AddUser(userId string, http *HttpConn)
- func CallDealRequest(w http.ResponseWriter, r *http.Request) (bool, net.Conn, string)
- func CallNewConn(user HttpUser) bool
- func DeleteUser(userId string, http *HttpConn)
- func GetMessageCache(userId string) []*message.Message
- func IsMessgeCache(userId string, message *message.Message) bool
- type CallDealRequestFunc
- type CallNewConnFunc
- type HttpConn
- func (hc *HttpConn) Add()
- func (hc *HttpConn) Close(userId string) error
- func (hc *HttpConn) Flush()
- func (hc *HttpConn) IsBreak() bool
- func (hc *HttpConn) IsTimeOut() bool
- func (hc *HttpConn) SendMessage(msg *message.Message) (int, error)
- func (hc *HttpConn) SendMessages(msgs []*message.Message) (int, error)
- type HttpConnFlushFunc
- type HttpConnWriteFunc
- type HttpUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallDealRequest ¶
func CallNewConn ¶
func DeleteUser ¶
func GetMessageCache ¶
Types ¶
type CallDealRequestFunc ¶
type CallNewConnFunc ¶
type HttpConn ¶
type HttpConn struct { *user.UserLite Deadline int HttpConnWrite HttpConnWriteFunc HttpConnFlush HttpConnFlushFunc // contains filtered or unexported fields }
type HttpConnFlushFunc ¶
type HttpConnFlushFunc func()
type HttpConnWriteFunc ¶
Click to show internal directories.
Click to hide internal directories.